diff options
author | wm4 <wm4@nowhere> | 2013-04-07 20:19:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-12 21:24:55 +0200 |
commit | 8bd6bf14bbe034cc198ed9b6ae8f5b871522ab55 (patch) | |
tree | 01a45a601f280b44954fbfa9e891d68243d8cd28 /core | |
parent | 1c601e84ffc84ba8dcf4c7b51b880c2ec72bcebe (diff) | |
download | mpv-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.c | 2 |
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, |