[gst-cvs] gst-plugins-bad: frei0r: Allow the complete double range for double properties

Sebastian Dröge slomo at kemper.freedesktop.org
Fri Jun 19 02:04:03 PDT 2009


Module: gst-plugins-bad
Branch: master
Commit: 41869062c65081ec0b971b87eb9a84682d7275eb
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=41869062c65081ec0b971b87eb9a84682d7275eb

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Fri Jun 12 15:13:29 2009 +0200

frei0r: Allow the complete double range for double properties

The spec restricts it to [0,1] but some plugins are using the
complete double range.

---

 gst/frei0r/gstfrei0r.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/frei0r/gstfrei0r.c b/gst/frei0r/gstfrei0r.c
index 0841c18..a09f0a2 100644
--- a/gst/frei0r/gstfrei0r.c
+++ b/gst/frei0r/gstfrei0r.c
@@ -91,7 +91,7 @@ gst_frei0r_klass_install_properties (GObjectClass * gobject_class,
       case F0R_PARAM_DOUBLE:
         g_object_class_install_property (gobject_class, count++,
             g_param_spec_double (prop_name, param_info->name,
-                param_info->explanation, 0.0, 1.0, 0.0,
+                param_info->explanation, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
                 G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
         properties[i].n_prop_ids = 1;
         break;





More information about the Gstreamer-commits mailing list