mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
- 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:
parent
9e09d51194
commit
ac94f1f879
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue