mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
design: element-sink: fix missing markup
This commit is contained in:
parent
22a72f31b2
commit
3823907047
1 changed files with 7 additions and 7 deletions
|
@ -15,24 +15,24 @@ treated specially by the GStreamer core.
|
||||||
|
|
||||||
## state changes
|
## state changes
|
||||||
|
|
||||||
A sink always returns ASYNC from the state change to PAUSED, this
|
A sink always returns `ASYNC` from the state change to `PAUSED`, this
|
||||||
includes a state change from READY→PAUSED and PLAYING→PAUSED. The reason
|
includes a state change from `READY→PAUSED` and `PLAYING→PAUSED`. The reason
|
||||||
for this is that this way we can detect when the first buffer or event
|
for this is that this way we can detect when the first buffer or event
|
||||||
arrives in the sink when the state change completes.
|
arrives in the sink when the state change completes.
|
||||||
|
|
||||||
A sink should block on the first EOS event or buffer received in the
|
A sink should block on the first `EOS` event or buffer received in the
|
||||||
READY→PAUSED state before commiting the state to PAUSED.
|
`READY→PAUSED` state before commiting the state to `PAUSED`.
|
||||||
|
|
||||||
FLUSHING events have to be handled out of sync with the buffer flow and
|
`FLUSHING` events have to be handled out of sync with the buffer flow and
|
||||||
take no part in the preroll procedure.
|
take no part in the preroll procedure.
|
||||||
|
|
||||||
Events other than EOS do not complete the preroll stage.
|
Events other than `EOS` do not complete the preroll stage.
|
||||||
|
|
||||||
## sink overview
|
## sink overview
|
||||||
|
|
||||||
- TODO: `PREROLL_LOCK` can be removed and we can safely use the `STREAM_LOCK`.
|
- TODO: `PREROLL_LOCK` can be removed and we can safely use the `STREAM_LOCK`.
|
||||||
|
|
||||||
``````
|
```c
|
||||||
# Commit the state. We return TRUE if we can continue
|
# Commit the state. We return TRUE if we can continue
|
||||||
# streaming, FALSE in the case we go to a READY or NULL state.
|
# streaming, FALSE in the case we go to a READY or NULL state.
|
||||||
# if we go to PLAYING, we don't need to block on preroll.
|
# if we go to PLAYING, we don't need to block on preroll.
|
||||||
|
|
Loading…
Reference in a new issue