Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
36681:c3962450b00b | 36682:68794f2fbf1e |
---|---|
3456 | 3456 |
3457 if (ts_prog) { | 3457 if (ts_prog) { |
3458 int tmp = ts_prog; | 3458 int tmp = ts_prog; |
3459 mp_property_do("switch_program", M_PROPERTY_SET, &tmp, mpctx); | 3459 mp_property_do("switch_program", M_PROPERTY_SET, &tmp, mpctx); |
3460 } | 3460 } |
3461 | |
3462 // select video stream | |
3463 select_video(mpctx->demuxer, video_id); | |
3464 | |
3461 // select audio stream | 3465 // select audio stream |
3462 select_audio(mpctx->demuxer, audio_id, audio_lang); | 3466 select_audio(mpctx->demuxer, audio_id, audio_lang); |
3463 | 3467 |
3464 // DUMP STREAMS: | 3468 // DUMP STREAMS: |
3465 if ((stream_dump_type) && (stream_dump_type < 4)) { | 3469 if ((stream_dump_type) && (stream_dump_type < 4)) { |