tools/gst-inspect.c: Use the realpad when printing the direction.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 19 Oct 2004 09:33:58 +0000 (09:33 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 19 Oct 2004 09:33:58 +0000 (09:33 +0000)
Original commit message from CVS:
* tools/gst-inspect.c: (print_pad_info), (print_plugin_features):
Use the realpad when printing the direction.
Add extra \n when printing extensions of typefind factories.

ChangeLog
tools/gst-inspect.c

index 93ef142..be5e708 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-19  Wim Taymans  <wim at fluendo dot com>
+
+       * tools/gst-inspect.c: (print_pad_info), (print_plugin_features):
+       Use the realpad when printing the direction.
+       Add extra \n when printing extensions of typefind factories.
+
 2004-10-13  David Schleef  <ds@schleef.org>
 
        * examples/manual/Makefile.am: $< isn't portable in Makefile
index f4124fa..9ea5ee1 100644 (file)
@@ -643,12 +643,12 @@ print_pad_info (GstElement * element)
 
     n_print ("");
 
-    if (gst_pad_get_direction (pad) == GST_PAD_SRC)
+    if (gst_pad_get_direction (GST_PAD (realpad)) == GST_PAD_SRC)
       g_print ("  SRC: '%s'", gst_pad_get_name (pad));
-    else if (gst_pad_get_direction (pad) == GST_PAD_SINK)
+    else if (gst_pad_get_direction (GST_PAD (realpad)) == GST_PAD_SINK)
       g_print ("  SINK: '%s'", gst_pad_get_name (pad));
     else
-      g_print ("  UNKNOWN!!!: '%s'\n", gst_pad_get_name (pad));
+      g_print ("  UNKNOWN!!!: '%s'", gst_pad_get_name (pad));
 
     if (GST_IS_GHOST_PAD (pad))
       g_print (", ghost of real pad %s:%s\n", GST_DEBUG_PAD_NAME (realpad));
@@ -1000,6 +1000,7 @@ print_plugin_features (GstPlugin * plugin)
           g_print ("%s%s", i > 0 ? ", " : "", factory->extensions[i]);
           i++;
         }
+        g_print ("\n");
       } else
         g_print ("%s type: N/A\n", plugin->desc.name);