Original commit message from CVS:
* gst/gstsegment.c: (gst_segment_set_seek),
(gst_segment_to_stream_time):
Improve some comment.
Update variables where it makes more sense.
+2008-02-29 Wim Taymans <wim.taymans@collabora.co.uk>
+
+ * gst/gstsegment.c: (gst_segment_set_seek),
+ (gst_segment_to_stream_time):
+ Improve some comment.
+ Update variables where it makes more sense.
+
2008-02-29 Rene Stadler <mail@renestadler.de>
* gst/gsturi.c: (gst_uri_handler_get_protocols):
segment->applied_rate = 1.0;
segment->flags = flags;
segment->start = start;
+ segment->stop = stop;
+ segment->time = start;
+
last_stop = segment->last_stop;
if (update_start && rate > 0.0) {
last_stop = start;
/* update new position */
segment->last_stop = last_stop;
-
- segment->time = start;
- segment->stop = stop;
}
/**
/* correct for segment time */
result += time;
} else {
- /* correct for segment time, clamp at 0 */
+ /* correct for segment time, clamp at 0. Streams with a negative
+ * applied_rate have timestamps between start and stop, as usual, but have
+ * the time member starting high and going backwards. */
if (time > result)
result = time - result;
else