mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
Added SET/CUR/END seek types.
Original commit message from CVS: Added SET/CUR/END seek types.
This commit is contained in:
parent
94dac7322d
commit
8a9a74d370
2 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue