From 63593f5f1e9ab0b00bff487a42f8f04e62c2a1cc Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 23 Feb 2010 11:41:20 +0100 Subject: oggdemux: use the chain begin_time instead of our counter We update the passed begintime argument to narrow our search region in the binary search. This means that it does not always contain the chain begin time after a couple of bisects. Use the real chain->begin_time to bring the granuletime to the time in the chain instead. Fixes #610005 --- 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 84f3ad7b..d8f00efb 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -1791,7 +1791,7 @@ do_binary_search (GstOggDemux * ogg, GstOggChain * chain, gint64 begin, GST_TIME_FORMAT, granulepos, GST_TIME_ARGS (granuletime)); granuletime -= pad->start_time; - granuletime += begintime; + granuletime += chain->begin_time; GST_DEBUG_OBJECT (ogg, "found page with granule %" G_GINT64_FORMAT " and time %" -- cgit