mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mpegtsdemux: resurrect actual and efficient seeking of all kinds
... by seeking to target offset determined by new seek segment, rather than that of the previous segment. The latter would typically seek back to start for a non-accurate seek, and lead to a lot of skipping in case of an accurate seek.
This commit is contained in:
parent
a139c8c7e8
commit
42b60627fa
1 changed files with 1 additions and 1 deletions
|
@ -897,7 +897,7 @@ gst_ts_demux_do_seek (MpegTSBase * base, GstEvent * event)
|
|||
|
||||
/* If the position actually changed, update == TRUE */
|
||||
if (update) {
|
||||
GstClockTime target = base->out_segment.start;
|
||||
GstClockTime target = seeksegment.start;
|
||||
if (target >= SEEK_TIMESTAMP_OFFSET)
|
||||
target -= SEEK_TIMESTAMP_OFFSET;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue