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

Original commit message from CVS:
* tools/gst-inspect.c: (print_interfaces),
(print_element_properties_info), (print_element_info):
Fix interface output with gst-inspect -a; don't print
newlines after double/float properties.
This commit is contained in:
Tim-Philipp Müller 2005-10-20 13:10:13 +00:00
parent 4dbc7a5bf8
commit ada05b6e5d
2 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), (print_element_info):
Fix interface output with gst-inspect -a; don't print
newlines after double/float properties.
2005-10-20 Wim Taymans <wim@fluendo.com>
* gst/base/gstbasesink.c: (gst_base_sink_get_position),

View file

@ -247,13 +247,13 @@ print_interfaces (GType type)
if (ifaces) {
if (n_ifaces) {
g_print ("Implemented Interfaces:\n");
g_print ("%sImplemented Interfaces:\n", _name);
iface = ifaces;
while (*iface) {
g_print (" %s\n", g_type_name (*iface));
g_print ("%s %s\n", _name, g_type_name (*iface));
iface++;
}
g_print ("\n");
g_print ("%s\n", _name);
g_free (ifaces);
}
}
@ -410,7 +410,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:
@ -421,7 +421,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:
@ -1086,7 +1086,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
gst_object_unref (factory);
if (_name != "")
if (_name[0] != '\0')
g_free (_name);
return 0;