Added SET/CUR/END seek types.

Original commit message from CVS:
Added SET/CUR/END seek types.
This commit is contained in:
Wim Taymans 2002-01-26 18:28:26 +00:00
parent 94dac7322d
commit 8a9a74d370
2 changed files with 7 additions and 5 deletions

View file

@ -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;

View file

@ -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)