mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-13 09:45:27 +00:00
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:
parent
4dbc7a5bf8
commit
ada05b6e5d
2 changed files with 13 additions and 6 deletions
|
@ -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>
|
2005-10-20 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/base/gstbasesink.c: (gst_base_sink_get_position),
|
* gst/base/gstbasesink.c: (gst_base_sink_get_position),
|
||||||
|
|
|
@ -247,13 +247,13 @@ print_interfaces (GType type)
|
||||||
|
|
||||||
if (ifaces) {
|
if (ifaces) {
|
||||||
if (n_ifaces) {
|
if (n_ifaces) {
|
||||||
g_print ("Implemented Interfaces:\n");
|
g_print ("%sImplemented Interfaces:\n", _name);
|
||||||
iface = ifaces;
|
iface = ifaces;
|
||||||
while (*iface) {
|
while (*iface) {
|
||||||
g_print (" %s\n", g_type_name (*iface));
|
g_print ("%s %s\n", _name, g_type_name (*iface));
|
||||||
iface++;
|
iface++;
|
||||||
}
|
}
|
||||||
g_print ("\n");
|
g_print ("%s\n", _name);
|
||||||
g_free (ifaces);
|
g_free (ifaces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -410,7 +410,7 @@ print_element_properties_info (GstElement * element)
|
||||||
g_print ("Range: %15.7g - %15.7g Default: %15.7g ",
|
g_print ("Range: %15.7g - %15.7g Default: %15.7g ",
|
||||||
pfloat->minimum, pfloat->maximum, pfloat->default_value);
|
pfloat->minimum, pfloat->maximum, pfloat->default_value);
|
||||||
if (readable)
|
if (readable)
|
||||||
g_print ("Current: %15.7g\n", g_value_get_float (&value));
|
g_print ("Current: %15.7g", g_value_get_float (&value));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case G_TYPE_DOUBLE:
|
case G_TYPE_DOUBLE:
|
||||||
|
@ -421,7 +421,7 @@ print_element_properties_info (GstElement * element)
|
||||||
g_print ("Range: %15.7g - %15.7g Default: %15.7g ",
|
g_print ("Range: %15.7g - %15.7g Default: %15.7g ",
|
||||||
pdouble->minimum, pdouble->maximum, pdouble->default_value);
|
pdouble->minimum, pdouble->maximum, pdouble->default_value);
|
||||||
if (readable)
|
if (readable)
|
||||||
g_print ("Current: %15.7g\n", g_value_get_double (&value));
|
g_print ("Current: %15.7g", g_value_get_double (&value));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -1086,7 +1086,7 @@ print_element_info (GstElementFactory * factory, gboolean print_names)
|
||||||
|
|
||||||
gst_object_unref (factory);
|
gst_object_unref (factory);
|
||||||
|
|
||||||
if (_name != "")
|
if (_name[0] != '\0')
|
||||||
g_free (_name);
|
g_free (_name);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue