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.
This commit is contained in:
Mathieu Duponchelle 2019-07-01 22:38:41 +02:00
parent 33277da781
commit 83704e32e6

View file

@ -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)