mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
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:
parent
33277da781
commit
83704e32e6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue