gst/gstsegment.c: _set_last_stop() must be with a value != -1
authorWim Taymans <wim.taymans@gmail.com>
Wed, 18 Oct 2006 13:27:39 +0000 (13:27 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 18 Oct 2006 13:27:39 +0000 (13:27 +0000)
commitfd6d33c360cb4f88a86bd75ac40c3036297e8f53
treeadd06508e68b7506deb9a025dfdd518310c18d51
parentc0a833edca9e450048064a88fdaee5d26c198a0a
gst/gstsegment.c: _set_last_stop() must be with a value != -1

Original commit message from CVS:
* gst/gstsegment.c: (gst_segment_set_last_stop),
(gst_segment_set_seek), (gst_segment_set_newsegment_full):
_set_last_stop() must be with a value != -1
A _TYPE_SET to -1 means seek to 0.
Calc last_stop correctly for negative rates.
Make sure we work with positive durations when updating a segment.
ChangeLog
gst/gstsegment.c