mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
docs: update negotiation design doc
This commit is contained in:
parent
3884badea6
commit
f8fedb8ff1
1 changed files with 6 additions and 7 deletions
|
@ -60,13 +60,10 @@ The general flow for a source pad starting the negotiation.
|
||||||
|
|
||||||
[element wants to create a buffer]
|
[element wants to create a buffer]
|
||||||
if not format
|
if not format
|
||||||
# see what the peer can do
|
|
||||||
peercaps = gst_pad_peer_get_caps (srcpad)
|
|
||||||
# see what we can do
|
# see what we can do
|
||||||
ourcaps = gst_pad_get_caps (srcpad)
|
ourcaps = gst_pad_get_caps (srcpad)
|
||||||
|
# see what the peer can do filtered against our caps
|
||||||
# get common formats
|
candidates = gst_pad_peer_get_caps (srcpad, ourcaps)
|
||||||
candidates = gst_caps_intersect (peercaps, ourcaps)
|
|
||||||
|
|
||||||
foreach candidate in candidates
|
foreach candidate in candidates
|
||||||
# make sure the caps is fixed
|
# make sure the caps is fixed
|
||||||
|
@ -82,8 +79,10 @@ The general flow for a source pad starting the negotiation.
|
||||||
done
|
done
|
||||||
endif
|
endif
|
||||||
|
|
||||||
buffer = gst_buffer_new_and_alloc (size);
|
#negotiate allocator/bufferpool with the ALLOCATION query
|
||||||
[fill buffer and push]
|
|
||||||
|
buffer = gst_buffer_new_allocate (NULL, size, 0);
|
||||||
|
# fill buffer and push
|
||||||
|
|
||||||
|
|
||||||
The general flow for a sink pad starting a renegotiation.
|
The general flow for a sink pad starting a renegotiation.
|
||||||
|
|
Loading…
Reference in a new issue