diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index 4f05672488..52ed207d50 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -2245,9 +2245,9 @@ gst_ts_demux_push_pending_data (GstTSDemux * demux, TSDemuxStream * stream) stream->discont = FALSE; if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_DTS (buffer))) - demux->segment.position = GST_BUFFER_DTS (buffer) - stream->first_dts; + demux->segment.position = GST_BUFFER_DTS (buffer); else if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_PTS (buffer))) - demux->segment.position = GST_BUFFER_PTS (buffer) - stream->first_dts; + demux->segment.position = GST_BUFFER_PTS (buffer); res = gst_pad_push (stream->pad, buffer); /* Record that a buffer was pushed */