tools/gst-inspect.c: Fix interface output with the -a option and don't print newlines after double/float properties.

Original commit message from CVS:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info):
Fix interface output with the -a option and don't print
newlines after double/float properties.
This commit is contained in:
Tim-Philipp Müller 2005-10-20 13:36:55 +00:00
parent 58d95bb42a
commit 9ef03a8c03
3 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2005-10-20 Tim-Philipp Müller <tim at centricular dot net>
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info):
Fix interface output with the -a option and don't print
newlines after double/float properties.
2005-09-29 Thomas Vander Stichele <thomas at apestaart dot org>
* po/LINGUAS:

2
common

@ -1 +1 @@
Subproject commit 7caeee4b949b4388927fec7fcf25f767429bde30
Subproject commit 1cb5d7b76a01c711674c752015089e70c394fa99

View file

@ -237,13 +237,13 @@ print_interfaces (GType type)
if (ifaces) {
if (n_ifaces) {
g_print ("Implemented Interfaces:\n");
g_print ("%sImplemented Interfaces:\n", (_name) ? _name : "");
iface = ifaces;
while (*iface) {
g_print (" %s\n", g_type_name (*iface));
g_print ("%s %s\n", (_name) ? _name : "", g_type_name (*iface));
iface++;
}
g_print ("\n");
g_print ("%s\n", (_name) ? _name : "");
g_free (ifaces);
}
}
@ -380,7 +380,7 @@ print_element_properties_info (GstElement * element)
g_print ("Range: %15.7g - %15.7g Default: %15.7g ",
pfloat->minimum, pfloat->maximum, pfloat->default_value);
if (readable)
g_print ("Current: %15.7g\n", g_value_get_float (&value));
g_print ("Current: %15.7g", g_value_get_float (&value));
break;
}
case G_TYPE_DOUBLE:
@ -391,7 +391,7 @@ print_element_properties_info (GstElement * element)
g_print ("Range: %15.7g - %15.7g Default: %15.7g ",
pdouble->minimum, pdouble->maximum, pdouble->default_value);
if (readable)
g_print ("Current: %15.7g\n", g_value_get_double (&value));
g_print ("Current: %15.7g", g_value_get_double (&value));
break;
}
default: