mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
tsdemux: remove dead code
position of GstSegment is an unsigned int64, it can never be below zero. CID #1295123
This commit is contained in:
parent
3daa793494
commit
f52cf2a7c4
1 changed files with 0 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue