summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2005-10-20 13:36:55 +0000
committerTim-Philipp Müller <tim@centricular.net>2005-10-20 13:36:55 +0000
commit9ef03a8c03a61163255ac52b670556a393e2741d (patch)
tree2da8ff898c6790a7f44176cfdc32e5a2fb196e92
parent58d95bb42aee970c88a1e97d1d233d120e0f0905 (diff)
downloadgstreamer-9ef03a8c03a61163255ac52b670556a393e2741d.tar.gz
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.
-rw-r--r--ChangeLog7
m---------common0
-rw-r--r--tools/gst-inspect.c10
3 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 92a31e72be..b031430d77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
diff --git a/common b/common
-Subproject 7caeee4b949b4388927fec7fcf25f767429bde3
+Subproject 1cb5d7b76a01c711674c752015089e70c394fa9
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index b755c3edf8..e033846dd1 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -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: