mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
gst/gstsegment.c: When seeking to stop -1, set last_stop (current position) to the duration of the segment.
Original commit message from CVS: * gst/gstsegment.c: (gst_segment_set_seek): When seeking to stop -1, set last_stop (current position) to the duration of the segment.
This commit is contained in:
parent
1b417192e6
commit
df08b4b762
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-10-13 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/gstsegment.c: (gst_segment_set_seek):
|
||||||
|
When seeking to stop -1, set last_stop (current position) to the
|
||||||
|
duration of the segment.
|
||||||
|
|
||||||
2006-10-13 Wim Taymans <wim@fluendo.com>
|
2006-10-13 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstelement.h:
|
* gst/gstelement.h:
|
||||||
|
|
|
@ -351,7 +351,10 @@ gst_segment_set_seek (GstSegment * segment, gdouble rate,
|
||||||
segment->last_stop = start;
|
segment->last_stop = start;
|
||||||
}
|
}
|
||||||
if (update_stop && rate < 0.0) {
|
if (update_stop && rate < 0.0) {
|
||||||
segment->last_stop = stop;
|
if (stop == -1)
|
||||||
|
segment->last_stop = segment->duration;
|
||||||
|
else
|
||||||
|
segment->last_stop = stop;
|
||||||
}
|
}
|
||||||
segment->time = start;
|
segment->time = start;
|
||||||
segment->stop = stop;
|
segment->stop = stop;
|
||||||
|
|
Loading…
Reference in a new issue