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 <!-- ##### STRUCT GstEvent ##### -->
41 <!-- ##### ENUM GstEventType ##### -->
43 The different major types of events.
46 @GST_EVENT_UNKNOWN: unknown event.
47 @GST_EVENT_FLUSH_START:
48 @GST_EVENT_FLUSH_STOP:
49 @GST_EVENT_EOS: an end-of-stream event.
50 @GST_EVENT_NEWSEGMENT:
53 @GST_EVENT_QOS: a quality of service event
54 @GST_EVENT_SEEK: a seek event.
55 @GST_EVENT_NAVIGATION:
56 @GST_EVENT_CUSTOM_START:
58 <!-- ##### MACRO GST_EVENT_TRACE_NAME ##### -->
60 The name used for memory allocation tracing
65 <!-- ##### MACRO GST_EVENT_TYPE ##### -->
70 @event: The event to query.
73 <!-- ##### MACRO GST_EVENT_TIMESTAMP ##### -->
75 Get the timestamp of the event.
78 @event: The event to query.
81 <!-- ##### MACRO GST_EVENT_SRC ##### -->
83 The source object that generated this event
86 @event: The event to query
89 <!-- ##### ENUM GstSeekType ##### -->
91 The different types of seek events. When constructing a seek event a format,
92 a seek method and optional flags are OR-ed together. The seek event is then
93 inserted into the graph with #gst_pad_send_event() or #gst_element_send_event().
95 Following example illustrates how to insert a seek event (1 second in the stream)
98 <title>Insertion of a seek event into a pipeline</title>
103 event = gst_event_new_seek (
104 GST_FORMAT_TIME | /* seek on time */
105 GST_SEEK_METHOD_SET | /* set the absolute position */
106 GST_SEEK_FLAG_FLUSH, /* flush any pending data */
107 1 * GST_SECOND); /* the seek offset (1 second) */
109 res = gst_element_send_event (GST_ELEMENT (osssink), event);
111 g_warning ("seek failed");
122 <!-- ##### MACRO gst_event_ref ##### -->
124 Increase the refcount of this event
127 @ev: The event to refcount
130 <!-- ##### MACRO gst_event_unref ##### -->
132 Decrease the refcount of an event, freeing it if the refcount reaches 0
135 @ev: The event to unref
138 <!-- ##### MACRO gst_event_copy ##### -->
140 Copy the event using the event specific copy function
143 @ev: The event to copy
144 @Returns: A new event that is a copy of the given input event
147 <!-- ##### FUNCTION gst_event_new_custom ##### -->
157 <!-- ##### FUNCTION gst_event_get_structure ##### -->
166 <!-- ##### FUNCTION gst_event_new_flush_start ##### -->
174 <!-- ##### FUNCTION gst_event_new_flush_stop ##### -->
182 <!-- ##### FUNCTION gst_event_new_eos ##### -->
190 <!-- ##### FUNCTION gst_event_new_newsegment ##### -->
203 <!-- ##### FUNCTION gst_event_parse_newsegment ##### -->
216 <!-- ##### FUNCTION gst_event_new_tag ##### -->
225 <!-- ##### FUNCTION gst_event_parse_tag ##### -->
234 <!-- ##### FUNCTION gst_event_new_filler ##### -->
236 Create a new dummy event that should be ignored
242 <!-- ##### FUNCTION gst_event_new_qos ##### -->
253 <!-- ##### FUNCTION gst_event_parse_qos ##### -->
264 <!-- ##### FUNCTION gst_event_new_seek ##### -->
277 <!-- # Unused Parameters # -->
282 <!-- ##### FUNCTION gst_event_parse_seek ##### -->
297 <!-- ##### FUNCTION gst_event_new_navigation ##### -->