mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
matroskademux: don't discard the incoming seek segment on push based seeking
The incoming seek segment was being discarded leading to push based seeking being potentially inaccurate.
This commit is contained in:
parent
d502b8cb24
commit
66d95d808c
1 changed files with 5 additions and 0 deletions
|
@ -2010,6 +2010,11 @@ gst_matroska_demux_handle_seek_event (GstMatroskaDemux * demux,
|
|||
GST_OBJECT_UNLOCK (demux);
|
||||
|
||||
if (demux->streaming) {
|
||||
GST_OBJECT_LOCK (demux);
|
||||
/* now update the real segment info */
|
||||
GST_DEBUG_OBJECT (demux, "Committing new seek segment");
|
||||
memcpy (&demux->common.segment, &seeksegment, sizeof (GstSegment));
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
/* need to seek to cluster start to pick up cluster time */
|
||||
/* upstream takes care of flushing and all that
|
||||
* ... and segment event handling takes care of the rest */
|
||||
|
|
Loading…
Reference in a new issue