summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-07-08 13:51:26 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-07-22 21:53:18 +0200
commit9652245ef0432143433da57e0563f0a69471965b (patch)
treeba271fbac10133abd33cf6f556b73c638476c6e9 /audio
parente61102e637a75e7d8861f61ece21594cf014217c (diff)
downloadmpv-9652245ef0432143433da57e0563f0a69471965b.tar.bz2
mpv-9652245ef0432143433da57e0563f0a69471965b.tar.xz
ao_coreaudio: fix regression in digital stream selection
The condition was checked wrongly on asbd which is the input format description. This lead to the condition always being true, thus selecting lpcm streams for digital input.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_coreaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c
index bb0c80b044..65e51bce7d 100644
--- a/audio/out/ao_coreaudio.c
+++ b/audio/out/ao_coreaudio.c
@@ -504,7 +504,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
d->stream_idx = i;
for (int j = 0; j < formats_n; j++)
- if (AudioFormatIsDigital(asbd)) {
+ if (AudioFormatIsDigital(formats[j].mFormat)) {
// select the digital format that has exactly the same
// samplerate. If an exact match cannot be found, select
// the format with highest samplerate as backup.