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.
/* update the segment values used for clipping */
/* accumulate previous segments */
- if (GST_CLOCK_TIME_IS_VALID (stream->segment.stop))
- stream->segment.base += (stream->segment.stop - stream->segment.start) /
- ABS (stream->segment.rate);
+ stream->segment.offset = qtdemux->segment.offset;
+ stream->segment.base = qtdemux->segment.base;
+ stream->segment.applied_rate = qtdemux->segment.applied_rate;
stream->segment.rate = rate;
stream->segment.start = start;
stream->segment.stop = stop;