qtdemux: don't reset segment

Don't reset the segment because we need the values for accumulation. the segment
is reset at start and after a flushing seek. Fixes some problems with files with
quicktime segments.
This commit is contained in:
Wim Taymans 2012-09-11 11:59:54 +02:00
parent f0989b600a
commit a374217786

View file

@ -3120,7 +3120,6 @@ gst_qtdemux_activate_segment (GstQTDemux * qtdemux, QtDemuxStream * stream,
rate = segment->rate * qtdemux->segment.rate;
/* update the segment values used for clipping */
gst_segment_init (&stream->segment, GST_FORMAT_TIME);
/* accumulate previous segments */
if (GST_CLOCK_TIME_IS_VALID (stream->segment.stop))
stream->segment.base += (stream->segment.stop - stream->segment.start) /