mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
docs: update docs some more
This commit is contained in:
parent
029ac4597e
commit
4c582b010b
1 changed files with 13 additions and 10 deletions
|
@ -39,27 +39,30 @@ Note that the behaviour is not influenced by a flushing pad.
|
||||||
sink pads
|
sink pads
|
||||||
---------
|
---------
|
||||||
|
|
||||||
A gst_pad_send_event() on a sinkpad will put the event into the pending array of
|
When the pad is flushing, the _send_event() function returns WRONG_STATE
|
||||||
sticky tags.
|
immediately.
|
||||||
|
|
||||||
When the pad is flushing, the _send_event() function returns WRONG_STATE.
|
A gst_pad_send_event() on a sinkpad will check the new event against the
|
||||||
|
existing event. If they are different, the old event is replaced with the new
|
||||||
|
event and the event is marked as inactive. If the events are the same, nothing
|
||||||
|
changes.
|
||||||
|
|
||||||
When the pad is not flushing, the event function is called for all sticky events
|
The event function is then called for all inactive events. If the function
|
||||||
in the pending array. If the event function returns success, the event is moved
|
returns success, the event is marked active, else the event is removed and set
|
||||||
to the sticky array. If the event function returns failure, the event is removed
|
to NULL in the array.
|
||||||
from the pending array.
|
|
||||||
|
|
||||||
This ensures that the event function is never called for flushing pads and that
|
This ensures that the event function is never called for flushing pads and that
|
||||||
the sticky array only contains events for which the event function returned
|
the sticky array only contains events for which the event function returned
|
||||||
success.
|
success.
|
||||||
|
|
||||||
|
|
||||||
pad link
|
pad link
|
||||||
--------
|
--------
|
||||||
|
|
||||||
When linking pads, all the sticky events from the srcpad are copied to the
|
When linking pads, all the sticky events from the srcpad are copied to the
|
||||||
pending array on the sinkpad. The events will be sent to the event function of
|
array on the sinkpad. All the different events are marked inactive.
|
||||||
the sinkpad on the next event or buffer.
|
The inactive events will be sent to the event function of the sinkpad on the next
|
||||||
|
event or buffer.
|
||||||
|
|
||||||
|
|
||||||
FLUSH_START/STOP
|
FLUSH_START/STOP
|
||||||
|
|
Loading…
Reference in a new issue