diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-06-22 12:26:19 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-06-22 12:26:19 +0200 |
commit | f8fedb8ff12a7f28a8b47bcd59688189f07e1f40 (patch) | |
tree | 58435c49c24e3f67778b78708e70bbe569ecb1ef /docs/design/part-negotiation.txt | |
parent | 3884badea68631af8905d8a67b0e19a423eb4262 (diff) |
docs: update negotiation design doc
Diffstat (limited to 'docs/design/part-negotiation.txt')
-rw-r--r-- | docs/design/part-negotiation.txt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/design/part-negotiation.txt b/docs/design/part-negotiation.txt index 77e3a790d3..2a5f4bee1a 100644 --- a/docs/design/part-negotiation.txt +++ b/docs/design/part-negotiation.txt @@ -60,13 +60,10 @@ The general flow for a source pad starting the negotiation. [element wants to create a buffer] if not format - # see what the peer can do - peercaps = gst_pad_peer_get_caps (srcpad) # see what we can do ourcaps = gst_pad_get_caps (srcpad) - - # get common formats - candidates = gst_caps_intersect (peercaps, ourcaps) + # see what the peer can do filtered against our caps + candidates = gst_pad_peer_get_caps (srcpad, ourcaps) foreach candidate in candidates # make sure the caps is fixed @@ -82,8 +79,10 @@ The general flow for a source pad starting the negotiation. done endif - buffer = gst_buffer_new_and_alloc (size); - [fill buffer and push] + #negotiate allocator/bufferpool with the ALLOCATION query + + buffer = gst_buffer_new_allocate (NULL, size, 0); + # fill buffer and push The general flow for a sink pad starting a renegotiation. |