# HG changeset patch # User reimar # Date 1393451786 0 # Node ID b4ccac0a65d5213420b303feeab5b03894bef65d # Parent 145057e3f0ed588d5a495ceef86afd58da5e0525 Use select_audio/select_video to disable unused streams. diff -r 145057e3f0ed -r b4ccac0a65d5 mplayer.c --- 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) {