[MPlayer-cvslog] r29846 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat Nov 7 12:12:57 CET 2009


Author: reimar
Date: Sat Nov  7 12:12:56 2009
New Revision: 29846

Log:
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.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Nov  7 12:09:23 2009	(r29845)
+++ trunk/mplayer.c	Sat Nov  7 12:12:56 2009	(r29846)
@@ -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);
 


More information about the MPlayer-cvslog mailing list