From d3958b912e15e18854d06009797677a9604145f2 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Sun, 4 Jan 2015 22:51:09 +0100 Subject: [PATCH] gst-inspect: fix output for -a Use n_print to ensure all lines are prefixed with the element name. --- tools/gst-inspect.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index abcaa77cef..6da1877511 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -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);