mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
docs: Gram and nit fixes for part-context.txt
This commit is contained in:
parent
11503e4b3f
commit
e6dda14148
1 changed files with 7 additions and 8 deletions
|
@ -15,7 +15,7 @@ queries, messages and functions to set a context on a complete pipeline.
|
||||||
Context types
|
Context types
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
Context type names should be unique and be put in appropiate namespaces,
|
Context type names should be unique and be put in appropiate namespaces,
|
||||||
e.g. "gst.egl.EGLDisplay", go prevent name conflicts. Only one specific
|
to prevent name conflicts, e.g. "gst.egl.EGLDisplay". Only one specific
|
||||||
type is allowed per context type name.
|
type is allowed per context type name.
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,9 +42,9 @@ do the following steps until one succeeds:
|
||||||
on the bus.
|
on the bus.
|
||||||
|
|
||||||
|
|
||||||
Bins will propagate any context that is set on them via
|
Bins will propagate any context that is set on them to their child elements via
|
||||||
gst_element_set_context() to their child elements, including newly added
|
gst_element_set_context(). Even to elements added after a given context has
|
||||||
elements after the context was set.
|
been set.
|
||||||
|
|
||||||
Bins can handle the GST_MESSAGE_NEED_CONTEXT message, can filter both
|
Bins can handle the GST_MESSAGE_NEED_CONTEXT message, can filter both
|
||||||
messages and can also set different contexts for different pipeline parts.
|
messages and can also set different contexts for different pipeline parts.
|
||||||
|
@ -57,10 +57,9 @@ a pipeline with gst_element_set_context().
|
||||||
|
|
||||||
If an element inside the pipeline needs a specific context, it will post
|
If an element inside the pipeline needs a specific context, it will post
|
||||||
a GST_MESSAGE_NEED_CONTEXT message on the bus. The application can now
|
a GST_MESSAGE_NEED_CONTEXT message on the bus. The application can now
|
||||||
create a context of the requested type or pass an already existing
|
create a context of the requested type or pass an already existing context
|
||||||
context to the element (or the complete pipeline).
|
to the element (or to the complete pipeline).
|
||||||
|
|
||||||
Whenever an element creates a context internally it will post a
|
Whenever an element creates a context internally it will post a
|
||||||
GST_MESSAGE_HAVE_CONTEXT message on the bus. Bins will cache these
|
GST_MESSAGE_HAVE_CONTEXT message on the bus. Bins will cache these
|
||||||
contexts and pass them to any future elements that request them.
|
contexts and pass them to any future elements that requests them.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue