From fc5da18fff49096217471b43c3146bbb64f8968c Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 16 Feb 2008 11:02:04 +0000 Subject: cosmetics git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26007 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ts.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libmpdemux') diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index c772f222a4..f96ee2792d 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -729,11 +729,9 @@ static off_t ts_detect_streams(demuxer_t *demuxer, tsdemux_init_t *param) p = progid_for_pid(priv, es.pid, param->prog); if(p != -1) - has_tables++; - - if((param->prog == 0) && (p != -1)) { - if(chosen_pid) + has_tables++; + if(!param->prog && chosen_pid) param->prog = p; } -- cgit v1.2.3