+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),
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);
}
}
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:
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:
gst_object_unref (factory);
- if (_name != "")
+ if (_name[0] != '\0')
g_free (_name);
return 0;