diff options
author | David Schleef <ds@schleef.org> | 2013-04-06 13:00:02 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2013-04-06 13:19:44 -0700 |
commit | c07efdabd8fcf02f100c9810a7a99a367dea4b34 (patch) | |
tree | d53b22e92adbe99ac05e28acfe236d19ac1efe30 | |
parent | c2b34b05de5a3fa0b12d749b89d4d655916aac49 (diff) |
videoscale: set reasonable limits on properties
Properties sharpen, sharpness, and envelope are only useful
near their default values. Decrease ranges to avoid brokenness.
https://bugzilla.gnome.org/show_bug.cgi?id=682171
-rw-r--r-- | gst/videoscale/gstvideoscale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 8aae6ce87..0986a6ee9 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -234,7 +234,7 @@ gst_video_scale_class_init (GstVideoScaleClass * klass) g_object_class_install_property (gobject_class, PROP_SHARPNESS, g_param_spec_double ("sharpness", "Sharpness", - "Sharpness of filter", DBL_MIN, 2.0, DEFAULT_PROP_SHARPNESS, + "Sharpness of filter", 0.5, 1.5, DEFAULT_PROP_SHARPNESS, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SHARPEN, @@ -259,7 +259,7 @@ gst_video_scale_class_init (GstVideoScaleClass * klass) g_object_class_install_property (gobject_class, PROP_ENVELOPE, g_param_spec_double ("envelope", "Envelope", - "Size of filter envelope", 0.0, 5.0, DEFAULT_PROP_ENVELOPE, + "Size of filter envelope", 1.0, 5.0, DEFAULT_PROP_ENVELOPE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (element_class, |