[FFmpeg-cvslog] ffprobe: reindent after 2b0973d

Stefano Sabatini git at videolan.org
Fri Oct 20 19:45:42 EEST 2023


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Oct 18 23:31:43 2023 +0200| [9dc834e71f190928ed773678375d6296bd680807] | committer: Stefano Sabatini

ffprobe: reindent after 2b0973d

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9dc834e71f190928ed773678375d6296bd680807
---

 fftools/ffprobe.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index a0dd7db4ce..01eb02de3f 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -1819,26 +1819,26 @@ static void xml_print_section_header(WriterContext *wctx, void *data)
         writer_put_str(wctx, ">\n");
     }
 
-        if (parent_section && (parent_section->flags & SECTION_FLAG_IS_WRAPPER) &&
-            wctx->level && wctx->nb_item[wctx->level-1])
-            writer_w8(wctx, '\n');
-        xml->indent_level++;
+    if (parent_section && (parent_section->flags & SECTION_FLAG_IS_WRAPPER) &&
+        wctx->level && wctx->nb_item[wctx->level-1])
+        writer_w8(wctx, '\n');
+    xml->indent_level++;
 
-        if (section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_HAS_VARIABLE_FIELDS)) {
-            XML_INDENT(); writer_printf(wctx, "<%s", section->name);
+    if (section->flags & (SECTION_FLAG_IS_ARRAY|SECTION_FLAG_HAS_VARIABLE_FIELDS)) {
+        XML_INDENT(); writer_printf(wctx, "<%s", section->name);
 
-            if (section->flags & SECTION_FLAG_HAS_TYPE) {
-                AVBPrint buf;
-                av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);
-                av_bprint_escape(&buf, section->get_type(data), NULL,
-                                 AV_ESCAPE_MODE_XML, AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES);
-                writer_printf(wctx, " type=\"%s\"", buf.str);
-            }
-            writer_printf(wctx, ">\n", section->name);
-        } else {
-            XML_INDENT(); writer_printf(wctx, "<%s ", section->name);
-            xml->within_tag = 1;
+        if (section->flags & SECTION_FLAG_HAS_TYPE) {
+            AVBPrint buf;
+            av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);
+            av_bprint_escape(&buf, section->get_type(data), NULL,
+                             AV_ESCAPE_MODE_XML, AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES);
+            writer_printf(wctx, " type=\"%s\"", buf.str);
         }
+        writer_printf(wctx, ">\n", section->name);
+    } else {
+        XML_INDENT(); writer_printf(wctx, "<%s ", section->name);
+        xml->within_tag = 1;
+    }
 }
 
 static void xml_print_section_footer(WriterContext *wctx)



More information about the ffmpeg-cvslog mailing list