Commit 83704e32 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸

qtdemux: only adjust segment time when adjusting segment start

We ended up setting segment.time to segment.position when doing
reverse playback, which is obviously wrong.
parent 33277da7
......@@ -1613,9 +1613,10 @@ gst_qtdemux_perform_seek (GstQTDemux * qtdemux, GstSegment * segment,
gst_segment_init (&stream->segment, GST_FORMAT_TIME);
segment->position = desired_offset;
segment->time = desired_offset;
if (segment->rate >= 0) {
segment->start = desired_offset;
/* We need to update time as we update start in that direction */
segment->time = desired_offset;
/* we stop at the end */
if (segment->stop == -1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment