mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
qtdemux: Don't accumulate segment bases manually
gst_segment_do_seek() does that for us already, and doing it twice will break non-flushing seeks in interesting ways. Leftover from 1.0 porting. Also copy over segment offset and applied_rate, just in case.
This commit is contained in:
parent
6611517af5
commit
bf95f93c01
1 changed files with 3 additions and 3 deletions
|
@ -3725,9 +3725,9 @@ gst_qtdemux_activate_segment (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
|
|
||||||
/* update the segment values used for clipping */
|
/* update the segment values used for clipping */
|
||||||
/* accumulate previous segments */
|
/* accumulate previous segments */
|
||||||
if (GST_CLOCK_TIME_IS_VALID (stream->segment.stop))
|
stream->segment.offset = qtdemux->segment.offset;
|
||||||
stream->segment.base += (stream->segment.stop - stream->segment.start) /
|
stream->segment.base = qtdemux->segment.base;
|
||||||
ABS (stream->segment.rate);
|
stream->segment.applied_rate = qtdemux->segment.applied_rate;
|
||||||
stream->segment.rate = rate;
|
stream->segment.rate = rate;
|
||||||
stream->segment.start = start;
|
stream->segment.start = start;
|
||||||
stream->segment.stop = stop;
|
stream->segment.stop = stop;
|
||||||
|
|
Loading…
Reference in a new issue