From 869ff4263f1bdee9e41cd69875f9a64535213e22 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 2 Mar 2010 18:29:41 +0100 Subject: [PATCH] matroskademux: Make sure we don't send invalid newsegments Fixes #611501 --- gst/matroska/matroska-demux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index b9227a8..85ce5fe 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -3536,6 +3536,8 @@ gst_matroska_demux_sync_streams (GstMatroskaDemux * demux) gint64 new_start; new_start = demux->segment.last_stop - (GST_SECOND / 2); + if (GST_CLOCK_TIME_IS_VALID (demux->segment.stop)) + new_start = MIN (new_start, demux->segment.stop); GST_DEBUG_OBJECT (demux, "Synchronizing stream %d with others by advancing time " "from %" GST_TIME_FORMAT " to %" GST_TIME_FORMAT, stream_nr, -- 2.7.4