From c2b34b05de5a3fa0b12d749b89d4d655916aac49 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Fri, 5 Apr 2013 22:03:56 +0200 Subject: [PATCH] videoscale: set min value to DBL_MIN to avoid a value of 0.0 that would crash --- gst/videoscale/gstvideoscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index a76dcbbcbf..8aae6ce875 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", 0.0, 2.0, DEFAULT_PROP_SHARPNESS, + "Sharpness of filter", DBL_MIN, 2.0, DEFAULT_PROP_SHARPNESS, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_SHARPEN,