diff options
author | wm4 <wm4@nowhere> | 2014-12-20 16:48:30 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2015-01-14 16:17:33 +0100 |
commit | 295622bab1ecde244c3e9cc49f4f1a3176103b49 (patch) | |
tree | e353cb15a605c53d12cc00f69d9b72ac4715eb21 | |
parent | 8def7ccb4f252b738f376e2a4ad66ca9c9f1955a (diff) | |
download | mpv-295622bab1ecde244c3e9cc49f4f1a3176103b49.tar.bz2 mpv-295622bab1ecde244c3e9cc49f4f1a3176103b49.tar.xz |
audio: fix previous commit
This would have always forced mono first (if supported by the AO),
instead of stereo.
-rw-r--r-- | audio/chmap_sel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/chmap_sel.c b/audio/chmap_sel.c index 1c5b7919eb..fe0b9598a0 100644 --- a/audio/chmap_sel.c +++ b/audio/chmap_sel.c @@ -184,11 +184,11 @@ bool mp_chmap_sel_adjust(const struct mp_chmap_sel *s, struct mp_chmap *map) } } // Fallback to mono/stereo as last resort - *map = (struct mp_chmap) MP_CHMAP_INIT_MONO; - if (map->num == 1 && test_layout(s, map)) - return true; *map = (struct mp_chmap) MP_CHMAP_INIT_STEREO; - if (map->num >= 2 && test_layout(s, map)) + if (test_layout(s, map)) + return true; + *map = (struct mp_chmap) MP_CHMAP_INIT_MONO; + if (test_layout(s, map)) return true; *map = (struct mp_chmap) {0}; return false; |