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:
Alessandro Decina 2012-04-19 08:31:00 +02:00 committed by Sebastian Dröge
parent d502b8cb24
commit 66d95d808c

View file

@ -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 */