1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Structure describing events that are passed up and down a pipeline
7 <!-- ##### SECTION Long_Description ##### -->
9 The event classes are used to construct and query events.
13 Events are usually created with gst_event_new() which takes the event type as an argument.
14 properties specific to the event can be set afterwards with the provided macros.
15 The event should be unreferenced with gst_event_unref().
18 gst_event_new_seek() is a usually used to create a seek event and it takes the
19 needed parameters for a seek event.
22 gst_event_new_flush() creates a new flush event.
25 <!-- ##### SECTION See_Also ##### -->
30 <!-- ##### SECTION Stability_Level ##### -->
33 <!-- ##### STRUCT GstEvent ##### -->
44 <!-- ##### ENUM GstEventType ##### -->
50 @GST_EVENT_FLUSH_START:
51 @GST_EVENT_FLUSH_STOP:
53 @GST_EVENT_NEWSEGMENT:
58 @GST_EVENT_NAVIGATION:
61 @GST_EVENT_CUSTOM_DS_OOB:
62 @GST_EVENT_CUSTOM_BOTH:
63 @GST_EVENT_CUSTOM_BOTH_OOB:
65 <!-- ##### MACRO GST_EVENT_TRACE_NAME ##### -->
67 The name used for memory allocation tracing
72 <!-- ##### MACRO GST_EVENT_TYPE ##### -->
77 @event: The event to query.
80 <!-- ##### MACRO GST_EVENT_TIMESTAMP ##### -->
82 Get the timestamp of the event.
85 @event: The event to query.
88 <!-- ##### MACRO GST_EVENT_SRC ##### -->
90 The source object that generated this event
93 @event: The event to query
96 <!-- ##### ENUM GstSeekType ##### -->
98 The different types of seek events. When constructing a seek event a format,
99 a seek method and optional flags are OR-ed together. The seek event is then
100 inserted into the graph with #gst_pad_send_event() or #gst_element_send_event().
102 Following example illustrates how to insert a seek event (1 second in the stream)
105 <title>Insertion of a seek event into a pipeline</title>
110 event = gst_event_new_seek (
111 GST_FORMAT_TIME | /* seek on time */
112 GST_SEEK_METHOD_SET | /* set the absolute position */
113 GST_SEEK_FLAG_FLUSH, /* flush any pending data */
114 1 * GST_SECOND); /* the seek offset (1 second) */
116 res = gst_element_send_event (GST_ELEMENT (osssink), event);
118 g_warning ("seek failed");
129 <!-- ##### MACRO gst_event_ref ##### -->
131 Increase the refcount of this event
134 @ev: The event to refcount
137 <!-- ##### MACRO gst_event_unref ##### -->
139 Decrease the refcount of an event, freeing it if the refcount reaches 0
142 @ev: The event to unref
145 <!-- ##### MACRO gst_event_copy ##### -->
147 Copy the event using the event specific copy function
150 @ev: The event to copy
151 @Returns: A new event that is a copy of the given input event
154 <!-- ##### FUNCTION gst_event_new_custom ##### -->
164 <!-- ##### FUNCTION gst_event_get_structure ##### -->
173 <!-- ##### FUNCTION gst_event_new_flush_start ##### -->
181 <!-- ##### FUNCTION gst_event_new_flush_stop ##### -->
189 <!-- ##### FUNCTION gst_event_new_eos ##### -->
197 <!-- ##### FUNCTION gst_event_new_newsegment ##### -->
210 <!-- ##### FUNCTION gst_event_parse_newsegment ##### -->
223 <!-- ##### FUNCTION gst_event_new_tag ##### -->
232 <!-- ##### FUNCTION gst_event_parse_tag ##### -->
241 <!-- ##### FUNCTION gst_event_new_filler ##### -->
243 Create a new dummy event that should be ignored
249 <!-- ##### FUNCTION gst_event_new_qos ##### -->
260 <!-- ##### FUNCTION gst_event_parse_qos ##### -->
271 <!-- ##### FUNCTION gst_event_new_seek ##### -->
284 <!-- # Unused Parameters # -->
289 <!-- ##### FUNCTION gst_event_parse_seek ##### -->
304 <!-- ##### FUNCTION gst_event_new_navigation ##### -->