Mercurial > mplayer.hg
changeset 29804:edecbb61e41f
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.
author | reimar |
---|---|
date | Sat, 07 Nov 2009 11:12:56 +0000 |
parents | 3b42ce7b09cf |
children | b9350576d4fc |
files | mplayer.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Nov 07 11:09:23 2009 +0000 +++ b/mplayer.c Sat Nov 07 11:12:56 2009 +0000 @@ -3339,6 +3339,10 @@ 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);