mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
Change printing of float props to %g
Original commit message from CVS: Change printing of float props to %g
This commit is contained in:
parent
e5b66a8990
commit
4c5ec2c57f
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue