oggdemux: Reset keyframe_granule when needed
authorEdward Hervey <bilboed@bilboed.com>
Sun, 15 May 2016 10:01:17 +0000 (12:01 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 15 May 2016 12:39:25 +0000 (14:39 +0200)
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

index 284f55e..9fe3a28 100644 (file)
@@ -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");