tsdemux: remove dead code

position of GstSegment is an unsigned int64, it can never be below zero.

CID #1295123
This commit is contained in:
Luis de Bethencourt 2015-04-20 10:57:41 +01:00
parent 3daa793494
commit f52cf2a7c4

View file

@ -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 */