diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-09 20:04:49 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-22 21:53:18 +0200 |
commit | 4e0618dab94f881a162a2aac8d88092183d43f28 (patch) | |
tree | 112b7e2750beb67c73d7aa109ab239f1abf67c94 /audio | |
parent | c2de6fdf345b72a0f69f9b4b9618599a7287c2c8 (diff) | |
download | mpv-4e0618dab94f881a162a2aac8d88092183d43f28.tar.bz2 mpv-4e0618dab94f881a162a2aac8d88092183d43f28.tar.xz |
ao_coreaudio: fallback to waveext on non surround inputs
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_coreaudio.c | 6 |
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)) |