docs: design: negotiation: Fix indentation in pseudo-code
authorFuga Kato <fkato@ibextech.jp>
Wed, 6 Apr 2022 06:45:44 +0000 (06:45 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 6 Apr 2022 09:05:53 +0000 (09:05 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2120>

subprojects/gst-docs/markdown/additional/design/negotiation.md

index 10a0981..eb27cb3 100644 (file)
@@ -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)
-
-    foreach candidate in candidates
-      # make sure the caps is fixed
-      fixedcaps = gst_pad_fixate_caps (srcpad, candidate)
+[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)
 
     # see if the peer accepts it
     if gst_pad_peer_accept_caps (srcpad, fixedcaps)