GstEvent Structure describing events that are passed up and down a pipeline The event classes are used to construct and query events. Events are usually created with gst_event_new() which takes the event type as an argument. properties specific to the event can be set afterwards with the provided macros. The event should be unreferenced with gst_event_unref(). gst_event_new_seek() is a usually used to create a seek event and it takes the needed parameters for a seek event. gst_event_new_flush() creates a new flush event. #GstPad, #GstElement @mini_object: @type: @timestamp: @src: @structure: The different major types of events. @GST_EVENT_UNKNOWN: unknown event. @GST_EVENT_FLUSH_START: @GST_EVENT_FLUSH_STOP: @GST_EVENT_EOS: an end-of-stream event. @GST_EVENT_NEWSEGMENT: @GST_EVENT_TAG: @GST_EVENT_FILLER: @GST_EVENT_QOS: a quality of service event @GST_EVENT_SEEK: a seek event. @GST_EVENT_NAVIGATION: @GST_EVENT_CUSTOM_START: The name used for memory allocation tracing Get the event type. @event: The event to query. Get the timestamp of the event. @event: The event to query. The source object that generated this event @event: The event to query The different types of seek events. When constructing a seek event a format, a seek method and optional flags are OR-ed together. The seek event is then inserted into the graph with #gst_pad_send_event() or #gst_element_send_event(). Following example illustrates how to insert a seek event (1 second in the stream) in a pipeline. Insertion of a seek event into a pipeline gboolean res; GstEvent *event; event = gst_event_new_seek ( GST_FORMAT_TIME | /* seek on time */ GST_SEEK_METHOD_SET | /* set the absolute position */ GST_SEEK_FLAG_FLUSH, /* flush any pending data */ 1 * GST_SECOND); /* the seek offset (1 second) */ res = gst_element_send_event (GST_ELEMENT (osssink), event); if (!res) { g_warning ("seek failed"); } @GST_SEEK_TYPE_NONE: @GST_SEEK_TYPE_CUR: @GST_SEEK_TYPE_SET: @GST_SEEK_TYPE_END: Increase the refcount of this event @ev: The event to refcount Decrease the refcount of an event, freeing it if the refcount reaches 0 @ev: The event to unref Copy the event using the event specific copy function @ev: The event to copy @Returns: A new event that is a copy of the given input event @type: @structure: @Returns: @event: @Returns: @Returns: @Returns: @Returns: @rate: @format: @start_value: @stop_value: @base: @Returns: @event: @rate: @format: @start_value: @end_value: @base: @taglist: @Returns: @event: @taglist: Create a new dummy event that should be ignored @Returns: @proportion: @diff: @timestamp: @Returns: @event: @proportion: @diff: @timestamp: @rate: @format: @flags: @cur_type: @cur: @stop_type: @stop: @Returns: @type: @offset: @event: @rate: @format: @flags: @cur_type: @cur: @stop_type: @stop: @structure: @Returns: