From 3c4466b816eca8becc69ded9cf011eb45d6dfcdb Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 5 Jan 2011 15:54:15 -0800 Subject: [PATCH] oggdemux: ignore header pages when looking for keyframe This was causing keyframe_granule to be set to 0 for all streams when seeking to the beginning of the stream, i.e., at the beginning of playback. Fixes #619778. --- ext/ogg/gstoggdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 18ecc550b6..76d179e080 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2113,7 +2113,7 @@ gst_ogg_demux_do_seek (GstOggDemux * ogg, GstSegment * segment, goto next; granulepos = ogg_page_granulepos (&og); - if (granulepos == -1) { + if (granulepos == -1 || granulepos == 0) { GST_LOG_OBJECT (ogg, "granulepos of next page is -1"); continue; }