From 47bf817960e9912132d41a44e6e698b69166aad4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 19 Oct 2004 09:33:58 +0000 Subject: [PATCH] tools/gst-inspect.c: Use the realpad when printing the direction. 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 | 6 ++++++ tools/gst-inspect.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93ef142..be5e708 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-19 Wim Taymans + + * 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 * examples/manual/Makefile.am: $< isn't portable in Makefile diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index f4124fa..9ea5ee1 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -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); -- 2.7.4