mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 07:26:29 +00:00
gst-inspect: fix output for -a
Use n_print to ensure all lines are prefixed with the element name.
This commit is contained in:
parent
0461c9f21d
commit
d3958b912e
1 changed files with 3 additions and 5 deletions
|
@ -709,16 +709,14 @@ print_pad_info (GstElement * element)
|
||||||
|
|
||||||
name = gst_pad_get_name (pad);
|
name = gst_pad_get_name (pad);
|
||||||
if (gst_pad_get_direction (pad) == GST_PAD_SRC)
|
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)
|
else if (gst_pad_get_direction (pad) == GST_PAD_SINK)
|
||||||
g_print (" SINK: '%s'", name);
|
n_print (" SINK: '%s'\n", name);
|
||||||
else
|
else
|
||||||
g_print (" UNKNOWN!!!: '%s'", name);
|
n_print (" UNKNOWN!!!: '%s'\n", name);
|
||||||
|
|
||||||
g_free (name);
|
g_free (name);
|
||||||
|
|
||||||
g_print ("\n");
|
|
||||||
|
|
||||||
if (pad->padtemplate)
|
if (pad->padtemplate)
|
||||||
n_print (" Pad Template: '%s'\n", pad->padtemplate->name_template);
|
n_print (" Pad Template: '%s'\n", pad->padtemplate->name_template);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue