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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26006 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2008-02-16 10:58:23 +00:00
parent 1a3fb6c21e
commit e9711acb5d
1 changed files with 7 additions and 0 deletions

View File

@ -875,6 +875,13 @@ static off_t ts_detect_streams(demuxer_t *demuxer, tsdemux_init_t *param)
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);