mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
e00815a586
commit
1d1d469488
1 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue