From 4c5ec2c57fd828337e03059818905747306afe73 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 27 Jul 2003 01:22:07 +0000 Subject: [PATCH] Change printing of float props to %g Original commit message from CVS: Change printing of float props to %g --- tools/gst-inspect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 06ad8bb..3fc09ae 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -37,14 +37,14 @@ print_prop (GstPropsEntry *prop, gboolean showname, const gchar *pfx) { gfloat val; gst_props_entry_get_float (prop, &val); - g_print("Float: %f\n", val); + g_print("Float: %g\n", val); break; } case GST_PROPS_FLOAT_RANGE_TYPE: { gfloat min, max; gst_props_entry_get_float_range (prop, &min, &max); - g_print("Float range: %f - %f\n", min, max); + g_print("Float range: %g - %g\n", min, max); break; } case GST_PROPS_BOOLEAN_TYPE: -- 2.7.4