mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
manual: add some text about bin state change order
This commit is contained in:
parent
fa14d42a1e
commit
d2ad127dcd
1 changed files with 10 additions and 1 deletions
|
@ -162,9 +162,18 @@ main (int argc,
|
||||||
to this state. This means it's usually only necessary to set the state
|
to this state. This means it's usually only necessary to set the state
|
||||||
of the top-level pipeline to start up the pipeline or shut it down.
|
of the top-level pipeline to start up the pipeline or shut it down.
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
The bin will perform the state changes on all its children from the
|
||||||
|
sink element to the source element. This ensures that the downstream
|
||||||
|
element is ready to receive data when the upstream element is brought
|
||||||
|
to PAUSED or PLAYING. Similarly when shutting down, the sink elements
|
||||||
|
will be set to READY or NULL first, which will cause the upstream
|
||||||
|
elements to receive a FLUSHING error and stop the streaming threads
|
||||||
|
before the elements are set to the READY or NULL state.
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Note, however, that if elements are added to a bin or pipeline that's
|
Note, however, that if elements are added to a bin or pipeline that's
|
||||||
already running, , e.g. from within a "pad-added" or "new-decoded-pad"
|
already running, , e.g. from within a "pad-added"
|
||||||
signal callback, its state will not automatically be brought in line with
|
signal callback, its state will not automatically be brought in line with
|
||||||
the current state or target state of the bin or pipeline it was added to.
|
the current state or target state of the bin or pipeline it was added to.
|
||||||
Instead, you have to need to set it to the desired target state yourself
|
Instead, you have to need to set it to the desired target state yourself
|
||||||
|
|
Loading…
Reference in a new issue