mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
qtdemux: fix reverse playback
When performing seek, segment->start is being updated with desired_offset, but in case of reverse playback segment->start should be 0 and segment->stop should be updated with desired offset. https://bugzilla.gnome.org/show_bug.cgi?id=750675
This commit is contained in:
parent
95bab88225
commit
720ff75c72
1 changed files with 8 additions and 4 deletions
|
@ -1432,11 +1432,15 @@ gst_qtdemux_perform_seek (GstQTDemux * qtdemux, GstSegment * segment,
|
|||
}
|
||||
segment->position = desired_offset;
|
||||
segment->time = desired_offset;
|
||||
segment->start = desired_offset;
|
||||
if (segment->rate >= 0) {
|
||||
segment->start = desired_offset;
|
||||
|
||||
/* we stop at the end */
|
||||
if (segment->stop == -1)
|
||||
segment->stop = segment->duration;
|
||||
/* we stop at the end */
|
||||
if (segment->stop == -1)
|
||||
segment->stop = segment->duration;
|
||||
} else {
|
||||
segment->stop = desired_offset;
|
||||
}
|
||||
|
||||
if (qtdemux->fragmented)
|
||||
qtdemux->fragmented_seek_pending = TRUE;
|
||||
|
|
Loading…
Reference in a new issue