summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-07 20:19:13 +0200
committerwm4 <wm4@nowhere>2013-05-12 21:24:55 +0200
commit8bd6bf14bbe034cc198ed9b6ae8f5b871522ab55 (patch)
tree01a45a601f280b44954fbfa9e891d68243d8cd28 /core
parent1c601e84ffc84ba8dcf4c7b51b880c2ec72bcebe (diff)
downloadmpv-8bd6bf14bbe034cc198ed9b6ae8f5b871522ab55.tar.bz2
mpv-8bd6bf14bbe034cc198ed9b6ae8f5b871522ab55.tar.xz
audio: remove useless audio channels from AO, unless requested
Diffstat (limited to 'core')
-rw-r--r--core/mplayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/mplayer.c b/core/mplayer.c
index 665216921e..e73a384baa 100644
--- a/core/mplayer.c
+++ b/core/mplayer.c
@@ -1584,6 +1584,8 @@ void reinit_audio_chain(struct MPContext *mpctx)
if (!ao->initialized) {
ao->buffersize = opts->ao_buffersize;
ao->encode_lavc_ctx = mpctx->encode_lavc_ctx;
+ mp_chmap_remove_useless_channels(&ao->channels,
+ &opts->audio_output_channels);
ao_init(ao, opts->audio_driver_list);
if (!ao->initialized) {
mp_tmsg(MSGT_CPLAYER, MSGL_ERR,