mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
docs/design/part-states.txt: minor corrections
This commit is contained in:
parent
937ad1615a
commit
e394e62578
1 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ State definitions
|
||||||
- PAUSED: The element should be ready to accept and process data. Sink
|
- PAUSED: The element should be ready to accept and process data. Sink
|
||||||
elements however only accept one buffer and then block.
|
elements however only accept one buffer and then block.
|
||||||
- PLAYING: The same as PAUSED except for live sources and sinks. Sinks accept
|
- PLAYING: The same as PAUSED except for live sources and sinks. Sinks accept
|
||||||
and rendering data. Live sources produce data.
|
and render data. Live sources produce data.
|
||||||
|
|
||||||
We call the sequence NULL->PLAYING an upwards state change and PLAYING->NULL
|
We call the sequence NULL->PLAYING an upwards state change and PLAYING->NULL
|
||||||
a downwards state change.
|
a downwards state change.
|
||||||
|
@ -30,7 +30,7 @@ the following state changes are possible:
|
||||||
|
|
||||||
NULL -> READY
|
NULL -> READY
|
||||||
- The element must check if the resources it needs are available.
|
- The element must check if the resources it needs are available.
|
||||||
Device sinks and -sources typically try to probe the device to constrain
|
Device sinks and sources typically try to probe the device to constrain
|
||||||
their caps.
|
their caps.
|
||||||
- The element opens the device, this is needed if the previous step requires
|
- The element opens the device, this is needed if the previous step requires
|
||||||
the device to be opened.
|
the device to be opened.
|
||||||
|
@ -162,7 +162,7 @@ function returns a GstElementStateReturn.
|
||||||
the pending state value. The function returns GST_STATE_NO_PREROLL.
|
the pending state value. The function returns GST_STATE_NO_PREROLL.
|
||||||
|
|
||||||
- If the element returned FAILURE to the previous _set_state() call, this
|
- If the element returned FAILURE to the previous _set_state() call, this
|
||||||
funciton will return FAILURE with the state set to the current state of
|
function will return FAILURE with the state set to the current state of
|
||||||
the element and the pending state set to the value used in the last call
|
the element and the pending state set to the value used in the last call
|
||||||
of _set_state().
|
of _set_state().
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ Bin:
|
||||||
Locking overview (element)
|
Locking overview (element)
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
* Element commiting SUCCESS
|
* Element committing SUCCESS
|
||||||
|
|
||||||
- STATE_LOCK is taken in set_state
|
- STATE_LOCK is taken in set_state
|
||||||
- change state is called if SUCCESS, commit state is called
|
- change state is called if SUCCESS, commit state is called
|
||||||
|
|
Loading…
Reference in a new issue