Mercurial > mplayer.hg
changeset 25974:41719f1e663b
in ts_detect_streams() try to identify the program found based on vpid and apid if the previous attempts failed for lack of infos
author | nicodvb |
---|---|
date | Sat, 16 Feb 2008 10:58:23 +0000 |
parents | ef4297ed0d12 |
children | 90207684e2d8 |
files | libmpdemux/demux_ts.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);