[MPlayer-cvslog] r26006 - trunk/libmpdemux/demux_ts.c

nicodvb subversion at mplayerhq.hu
Sat Feb 16 11:58:24 CET 2008


Author: nicodvb
Date: Sat Feb 16 11:58:23 2008
New Revision: 26006

Log:
in ts_detect_streams() try to identify the program found based on vpid and apid if the previous attempts failed for lack of infos

Modified:
   trunk/libmpdemux/demux_ts.c

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	(original)
+++ trunk/libmpdemux/demux_ts.c	Sat Feb 16 11:58:23 2008
@@ -875,6 +875,13 @@ static off_t ts_detect_streams(demuxer_t
 
 	if(video_found || audio_found)
 	{
+		if(!param->prog)
+		{
+			p = progid_for_pid(priv, video_found ? param->vpid : param->apid, 0);
+			if(p != -1)
+				param->prog = p;
+		}
+
 		if(demuxer->stream->eof && (ret == 0))
 			ret = init_pos;
 		mp_msg(MSGT_DEMUXER, MSGL_INFO, " PROGRAM N. %d\n", param->prog);



More information about the MPlayer-cvslog mailing list