Commit df08b4b7 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/gstsegment.c: When seeking to stop -1, set last_stop (current position) to...

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.
parent 1b417192
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:
......
......@@ -351,7 +351,10 @@ gst_segment_set_seek (GstSegment * segment, gdouble rate,
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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment