aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-16 11:02:04 +0000
committerGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-16 11:02:04 +0000
commitfc5da18fff49096217471b43c3146bbb64f8968c (patch)
treeda388dbf0b39161ceab089b268ed0f8007f4de2e /libmpdemux
parente9711acb5dc39c760c1b9b7e8b68976503120b82 (diff)
cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26007 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_ts.c6
1 files changed, 2 insertions, 4 deletions
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;
}