mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 10:51:51 +00:00
Use switch_program property from mplayer.c to set ts_prog.
This seems to leave the ts demuxer unaffected, but fixes -tsprog with the lavf demuxer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29846 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
25f0498660
commit
36a0a35598
@ -3339,6 +3339,10 @@ mpctx->d_audio=mpctx->demuxer->audio;
|
||||
mpctx->d_video=mpctx->demuxer->video;
|
||||
mpctx->d_sub=mpctx->demuxer->sub;
|
||||
|
||||
if (ts_prog) {
|
||||
int tmp = ts_prog;
|
||||
mp_property_do("switch_program", M_PROPERTY_SET, &tmp, mpctx);
|
||||
}
|
||||
// select audio stream
|
||||
select_audio(mpctx->demuxer, audio_id, audio_lang);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user