diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegtsdemux/tsdemux.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index ef6055b0e..aa717b437 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -811,10 +811,9 @@ gst_ts_demux_do_seek (MpegTSBase * base, GstEvent * event) /* configure the segment with the seek variables */ GST_DEBUG_OBJECT (demux, "configuring seek"); - start = MAX (0, start - SEEK_TIMESTAMP_OFFSET); start_offset = - mpegts_packetizer_ts_to_offset (base->packetizer, start, - demux->program->pcr_pid); + mpegts_packetizer_ts_to_offset (base->packetizer, MAX (0, + start - SEEK_TIMESTAMP_OFFSET), demux->program->pcr_pid); if (G_UNLIKELY (start_offset == -1)) { GST_WARNING ("Couldn't convert start position to an offset"); |