Gets the type of context
.
Checks if context
has context_type
.
Context type to check.
Checks if context
is persistent.
Convenience macro to decrease the reference count of the context, possibly freeing it.
Modifies a pointer to a #GstContext to point to a different #GstContext. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old context is unreffed, the new one is reffed).
Either new_context
or the #GstContext pointed to by old_context
may be %NULL.
pointer to a pointer to a #GstContext to be replaced.
pointer to a #GstContext that will replace the context pointed to by old_context
.
#GstContext is a container object used to store contexts like a device context, a display server connection and similar concepts that should be shared between multiple elements.
Applications can set a context on a complete pipeline by using gst_element_set_context(), which will then be propagated to all child elements. Elements can handle these in #GstElementClass::set_context and merge them with the context information they already have.
When an element needs a context it will do the following actions in this order until one step succeeds:
Bins will catch %GST_MESSAGE_NEED_CONTEXT messages and will set any previously known context on the element that asks for it if possible. Otherwise the application should provide one if it can.
#GstContext can be persistent. A persistent #GstContext is kept in elements when they reach %GST_STATE_NULL, non-persistent ones will be removed. Also, a non-persistent context won't override a previous persistent context set to an element.