From 8a9a74d37008a9720a152b8870298b37fc4e3d83 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 26 Jan 2002 18:28:26 +0000 Subject: [PATCH] Added SET/CUR/END seek types. Original commit message from CVS: Added SET/CUR/END seek types. --- gst/gstevent.c | 2 +- gst/gstevent.h | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gst/gstevent.c b/gst/gstevent.c index 0a88c6abdd..338e769a22 100644 --- a/gst/gstevent.c +++ b/gst/gstevent.c @@ -120,7 +120,7 @@ gst_event_free (GstEvent* event) * Returns: A new seek event. */ GstEvent* -gst_event_new_seek (GstSeekType type, guint64 offset, gboolean flush) +gst_event_new_seek (GstSeekType type, gint64 offset, gboolean flush) { GstEvent *event; diff --git a/gst/gstevent.h b/gst/gstevent.h index c163292a63..078690aa6d 100644 --- a/gst/gstevent.h +++ b/gst/gstevent.h @@ -60,8 +60,10 @@ extern GType _gst_event_type; /* seek events */ typedef enum { GST_SEEK_ANY, - GST_SEEK_TIMEOFFSET, - GST_SEEK_BYTEOFFSET + GST_SEEK_TIMEOFFSET_SET, + GST_SEEK_BYTEOFFSET_SET, + GST_SEEK_BYTEOFFSET_CUR, + GST_SEEK_BYTEOFFSET_END, } GstSeekType; #define GST_EVENT_SEEK_TYPE(event) (GST_EVENT(event)->event_data.seek.type) @@ -80,7 +82,7 @@ struct _GstEvent { union { struct { GstSeekType type; - guint64 offset; + gint64 offset; gboolean flush; } seek; struct { @@ -99,7 +101,7 @@ GstEvent* gst_event_new (GstEventType type); void gst_event_free (GstEvent* event); /* seek events */ -GstEvent* gst_event_new_seek (GstSeekType type, guint64 offset, gboolean flush); +GstEvent* gst_event_new_seek (GstSeekType type, gint64 offset, gboolean flush); /* flush events */ #define gst_event_new_flush() gst_event_new(GST_EVENT_FLUSH)