gst-inspect: fix output for -a
authorStefan Sauer <ensonic@users.sf.net>
Sun, 4 Jan 2015 21:51:09 +0000 (22:51 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Sun, 4 Jan 2015 21:52:19 +0000 (22:52 +0100)
Use n_print to ensure all lines are prefixed with the element name.

tools/gst-inspect.c

index abcaa77..6da1877 100644 (file)
@@ -709,16 +709,14 @@ print_pad_info (GstElement * element)
 
     name = gst_pad_get_name (pad);
     if (gst_pad_get_direction (pad) == GST_PAD_SRC)
-      g_print ("  SRC: '%s'", name);
+      n_print ("  SRC: '%s'\n", name);
     else if (gst_pad_get_direction (pad) == GST_PAD_SINK)
-      g_print ("  SINK: '%s'", name);
+      n_print ("  SINK: '%s'\n", name);
     else
-      g_print ("  UNKNOWN!!!: '%s'", name);
+      n_print ("  UNKNOWN!!!: '%s'\n", name);
 
     g_free (name);
 
-    g_print ("\n");
-
     if (pad->padtemplate)
       n_print ("    Pad Template: '%s'\n", pad->padtemplate->name_template);