summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-07-09 20:04:49 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-07-22 21:53:18 +0200
commit4e0618dab94f881a162a2aac8d88092183d43f28 (patch)
tree112b7e2750beb67c73d7aa109ab239f1abf67c94
parentc2de6fdf345b72a0f69f9b4b9618599a7287c2c8 (diff)
downloadmpv-4e0618dab94f881a162a2aac8d88092183d43f28.tar.bz2
mpv-4e0618dab94f881a162a2aac8d88092183d43f28.tar.xz
ao_coreaudio: fallback to waveext on non surround inputs
-rw-r--r--audio/out/ao_coreaudio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c
index 6c1cdb9150..df59683add 100644
--- a/audio/out/ao_coreaudio.c
+++ b/audio/out/ao_coreaudio.c
@@ -412,9 +412,9 @@ static int init(struct ao *ao, char *params)
mp_chmap_sel_add_map(&chmap_sel, &chmap);
}
- if (n_bitmaps < 1)
- // Could not get from the hardware any usable bitmap, default to
- // waveext...
+ if (ao->channels.num < 3 || n_bitmaps < 1)
+ // If the input is not surround or we could not get any usable
+ // bitmap from the hardware, default to waveext...
mp_chmap_sel_add_waveext(&chmap_sel);
if (!ao_chmap_sel_adjust(ao, &chmap_sel, &ao->channels))