- A regular seek event sets the endoffset to -1 to indicate that the value should be ignored.

Original commit message from CVS:
- A regular seek event sets the endoffset to -1 to indicate
that the value should be ignored.
- A segment seek only takes start < stop
This commit is contained in:
Wim Taymans 2002-10-31 18:41:18 +00:00
parent 9e09d51194
commit ac94f1f879

View file

@ -136,6 +136,7 @@ gst_event_new_seek (GstSeekType type, gint64 offset)
GST_EVENT_SEEK_TYPE (event) = type;
GST_EVENT_SEEK_OFFSET (event) = offset;
GST_EVENT_SEEK_ENDOFFSET (event) = -1;
return event;
}
@ -247,6 +248,8 @@ gst_event_new_segment_seek (GstSeekType type, gint64 start, gint64 stop)
{
GstEvent *event;
g_return_val_if_fail (start < stop, NULL);
event = gst_event_new (GST_EVENT_SEEK_SEGMENT);
GST_EVENT_SEEK_TYPE (event) = type;