tools: gst-inspect: fix double empty line after pad templates
authorTim-Philipp Müller <tim@centricular.com>
Fri, 17 Nov 2017 00:14:35 +0000 (00:14 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 17 Nov 2017 00:14:35 +0000 (00:14 +0000)
tools/gst-inspect.c

index 4dd10ee..c49c138 100644 (file)
@@ -592,7 +592,8 @@ print_pad_templates_info (GstElement * element, GstElementFactory * factory)
       gst_caps_unref (caps);
     }
 
-    n_print ("\n");
+    if (pads != NULL)
+      n_print ("\n");
   }
 }