From 4e0618dab94f881a162a2aac8d88092183d43f28 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 9 Jul 2013 20:04:49 +0200 Subject: ao_coreaudio: fallback to waveext on non surround inputs --- audio/out/ao_coreaudio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio') 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)) -- cgit v1.2.3