# HG changeset patch # User nicodvb # Date 1203159503 0 # Node ID 41719f1e663b45f8b997748c7ebe5e1323571c7a # Parent ef4297ed0d12896337e6e8b6a07e8e58001479a5 in ts_detect_streams() try to identify the program found based on vpid and apid if the previous attempts failed for lack of infos diff -r ef4297ed0d12 -r 41719f1e663b libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Fri Feb 15 21:52:34 2008 +0000 +++ b/libmpdemux/demux_ts.c Sat Feb 16 10:58:23 2008 +0000 @@ -875,6 +875,13 @@ 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);