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.
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>
+
* gst/gstelement.h:
Clarify _NO_PREROLL a bit more.
segment->last_stop = start;
}
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->stop = stop;