[MPlayer-cvslog] r36949 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Wed Feb 26 22:56:26 CET 2014
Author: reimar
Date: Wed Feb 26 22:56:26 2014
New Revision: 36949
Log:
Use select_audio/select_video to disable unused streams.
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Wed Feb 26 20:54:17 2014 (r36948)
+++ trunk/mplayer.c Wed Feb 26 22:56:26 2014 (r36949)
@@ -3480,10 +3480,12 @@ goto_enable_cache:
// disable other streams:
if (mpctx->d_audio && mpctx->d_audio != ds) {
ds_free_packs(mpctx->d_audio);
+ select_audio(mpctx->demuxer, -2, NULL);
mpctx->d_audio->id = -2;
}
if (mpctx->d_video && mpctx->d_video != ds) {
ds_free_packs(mpctx->d_video);
+ select_video(mpctx->demuxer, -2);
mpctx->d_video->id = -2;
}
if (mpctx->d_sub && mpctx->d_sub != ds) {
More information about the MPlayer-cvslog
mailing list