From 4b771bff7a224d179c67cdf8ab105f12079b3286 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 19 Jan 2010 08:39:14 -0300 Subject: [PATCH] oggdemux: No need to subtract begin time Last stop is already based on the chain start and there is no need to subtract the chain start as it may lead to a negative overflow. This was causing seeking issues when the target chain was not the first one (that has chain start = 0) Fixes #606382 --- 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 1540af2068..cd4711cbc9 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -2138,7 +2138,7 @@ gst_ogg_demux_perform_seek (GstOggDemux * ogg, GstEvent * event) stop = MIN (stop, chain->segment_stop); } - last_stop = ogg->segment.last_stop - begin_time; + last_stop = ogg->segment.last_stop; if (chain->segment_start != GST_CLOCK_TIME_NONE) last_stop += chain->segment_start;