mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
tsdemux: Don't reset/recalculate segments with accurate seeks
When dealing with accurate seeks, we must send out a segment which is exactly what is requested. https://bugzilla.gnome.org/show_bug.cgi?id=763262
This commit is contained in:
parent
a68c8978a6
commit
215c9eb71a
1 changed files with 4 additions and 3 deletions
|
@ -861,8 +861,8 @@ gst_ts_demux_do_seek (MpegTSBase * base, GstEvent * event)
|
|||
|
||||
gst_segment_do_seek (&demux->segment, rate, format, flags, start_type,
|
||||
start, stop_type, stop, NULL);
|
||||
if (!(flags & GST_SEEK_FLAG_ACCURATE))
|
||||
demux->reset_segment = TRUE;
|
||||
/* Reset segment if we're not doing an accurate seek */
|
||||
demux->reset_segment = (!(flags & GST_SEEK_FLAG_ACCURATE));
|
||||
|
||||
if (demux->segment_event) {
|
||||
gst_event_unref (demux->segment_event);
|
||||
|
@ -1618,7 +1618,8 @@ gst_ts_demux_stream_added (MpegTSBase * base, MpegTSBaseStream * bstream,
|
|||
stream->active = FALSE;
|
||||
|
||||
stream->need_newsegment = TRUE;
|
||||
demux->reset_segment = TRUE;
|
||||
/* Reset segment if we're not doing an accurate seek */
|
||||
demux->reset_segment = (!(demux->segment.flags & GST_SEEK_FLAG_ACCURATE));
|
||||
stream->needs_keyframe = FALSE;
|
||||
stream->discont = TRUE;
|
||||
stream->pts = GST_CLOCK_TIME_NONE;
|
||||
|
|
Loading…
Reference in a new issue