Change printing of float props to %g

Original commit message from CVS:
Change printing of float props to %g
This commit is contained in:
David Schleef 2003-07-27 01:22:07 +00:00
parent e5b66a8990
commit 4c5ec2c57f

View file

@ -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: