changeset 36853:b4ccac0a65d5

Use select_audio/select_video to disable unused streams.
author reimar
date Wed, 26 Feb 2014 21:56:26 +0000
parents 145057e3f0ed
children 180fb662db7a
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Feb 26 19:54:17 2014 +0000
+++ b/mplayer.c	Wed Feb 26 21:56:26 2014 +0000
@@ -3480,10 +3480,12 @@
         // 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) {