diff options
author | René Stadler <rene.stadler@collabora.co.uk> | 2011-11-23 12:41:32 +0100 |
---|---|---|
committer | René Stadler <rene.stadler@collabora.co.uk> | 2011-11-23 12:43:48 +0100 |
commit | 461f1971ddca8123c1d7d8b3a591b8bf6f2f0c1f (patch) | |
tree | 3a7faaa86e10eb58b3c9e4eb366b9390c8d52e84 /gst/frei0r | |
parent | 296874561f41687b5432af5f2619b6bf0c34b5f1 (diff) | |
download | gstreamer-plugins-bad-461f1971ddca8123c1d7d8b3a591b8bf6f2f0c1f.tar.gz |
frei0r: normalize boolean property default values to TRUE/FALSE
Glib barks at us with a warning when we pass e.g. 4.
Diffstat (limited to 'gst/frei0r')
-rw-r--r-- | gst/frei0r/gstfrei0r.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/frei0r/gstfrei0r.c b/gst/frei0r/gstfrei0r.c index c7a9c71d5..a6763cd01 100644 --- a/gst/frei0r/gstfrei0r.c +++ b/gst/frei0r/gstfrei0r.c @@ -105,7 +105,8 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class, case F0R_PARAM_BOOL: g_object_class_install_property (gobject_class, count++, g_param_spec_boolean (prop_name, param_info->name, - param_info->explanation, properties[i].default_value.data.b, + param_info->explanation, + properties[i].default_value.data.b ? TRUE : FALSE, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE)); properties[i].n_prop_ids = 1; break; |