From 8a55dd92330f2c4589a80f6b5c5360984f675f32 Mon Sep 17 00:00:00 2001 From: Fuga Kato Date: Wed, 6 Apr 2022 06:45:44 +0000 Subject: [PATCH] docs: design: negotiation: Fix indentation in pseudo-code Part-of: --- .../markdown/additional/design/negotiation.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/subprojects/gst-docs/markdown/additional/design/negotiation.md b/subprojects/gst-docs/markdown/additional/design/negotiation.md index 10a09813a7..eb27cb37bb 100644 --- a/subprojects/gst-docs/markdown/additional/design/negotiation.md +++ b/subprojects/gst-docs/markdown/additional/design/negotiation.md @@ -113,16 +113,16 @@ push buffer |---------------->| Process buffer of type A One possible implementation in pseudo code: ``` - [element wants to create a buffer] - if not format - # see what we can do - ourcaps = gst_pad_query_caps (srcpad) - # see what the peer can do filtered against our caps - candidates = gst_pad_peer_query_caps (srcpad, ourcaps) +[element wants to create a buffer] +if not format + # see what we can do + ourcaps = gst_pad_query_caps (srcpad) + # see what the peer can do filtered against our caps + candidates = gst_pad_peer_query_caps (srcpad, ourcaps) - foreach candidate in candidates - # make sure the caps is fixed - fixedcaps = gst_pad_fixate_caps (srcpad, candidate) + foreach candidate in candidates + # make sure the caps is fixed + fixedcaps = gst_pad_fixate_caps (srcpad, candidate) # see if the peer accepts it if gst_pad_peer_accept_caps (srcpad, fixedcaps)