diff mplayer.c @ 36682:68794f2fbf1e

Add support for default of multiple video tracks. Some container formats like matroska support multiple video tracks, one of which may be flagged the 'default' one which thus should be played by default. Works with the lavf demuxer.
author ib
date Sun, 02 Feb 2014 19:18:31 +0000
parents c11abb032606
children e3d879a5f1cf
line wrap: on
line diff
--- a/mplayer.c	Sun Feb 02 10:54:37 2014 +0000
+++ b/mplayer.c	Sun Feb 02 19:18:31 2014 +0000
@@ -3458,6 +3458,10 @@
         int tmp = ts_prog;
         mp_property_do("switch_program", M_PROPERTY_SET, &tmp, mpctx);
     }
+
+    // select video stream
+    select_video(mpctx->demuxer, video_id);
+
     // select audio stream
     select_audio(mpctx->demuxer, audio_id, audio_lang);