From f52cf2a7c4a03065eb435d9df390923783f4c715 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 20 Apr 2015 10:57:41 +0100 Subject: [PATCH] tsdemux: remove dead code position of GstSegment is an unsigned int64, it can never be below zero. CID #1295123 --- gst/mpegtsdemux/tsdemux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index fdaf63a..dac3e54 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -2242,8 +2242,6 @@ gst_ts_demux_push_pending_data (GstTSDemux * demux, TSDemuxStream * stream) demux->segment.position = GST_BUFFER_DTS (buffer) - stream->first_dts; else if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_PTS (buffer))) demux->segment.position = GST_BUFFER_PTS (buffer) - stream->first_dts; - if (demux->segment.position < 0) - demux->segment.position = 0; res = gst_pad_push (stream->pad, buffer); /* Record that a buffer was pushed */ -- 2.7.4