From c07efdabd8fcf02f100c9810a7a99a367dea4b34 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 6 Apr 2013 13:00:02 -0700 Subject: [PATCH] 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 --- gst/videoscale/gstvideoscale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 8aae6ce875..0986a6ee98 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,