From 98c9eb98583c43301f135f7e7b72d55f3dcecb12 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sun, 15 May 2016 12:01:17 +0200 Subject: [PATCH] oggdemux: Reset keyframe_granule when needed This avoids ending up with bogus values when doing flushing seeks in push-mode. https://bugzilla.gnome.org/show_bug.cgi?id=766467 --- ext/ogg/gstoggdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 284f55e72d..9fe3a284e8 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2319,6 +2319,7 @@ gst_ogg_demux_reset_streams (GstOggDemux * ogg) stream->start_time = -1; stream->map.accumulated_granule = 0; stream->current_granule = -1; + stream->keyframe_granule = -1; } ogg->building_chain = chain; GST_DEBUG_OBJECT (ogg, "Resetting current chain");