tsdemux: Don't overwrite original seek value

In accurate mode, we'll be using start to fill in the seek segment,
therefore don't overwrite it with the shifted seek position.

https://bugzilla.gnome.org/show_bug.cgi?id=731698
This commit is contained in:
Edward Hervey 2014-06-16 07:42:37 +02:00
parent e00815a586
commit 1d1d469488

View file

@ -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");