mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 04:45:36 +00:00
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
This commit is contained in:
parent
6dfc0270ec
commit
4b771bff7a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue