summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-01-19 08:39:14 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-01-19 08:39:14 -0300
commit4b771bff7a224d179c67cdf8ab105f12079b3286 (patch)
tree5cacc4a8db36c4e0df67b478d962b3731e4ecbdd
parent6dfc0270eccc394fc46f4c83127fc7b600a991cd (diff)
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
-rw-r--r--ext/ogg/gstoggdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index 1540af20..cd4711cb 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;