diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2013-04-05 22:03:56 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2013-04-05 22:39:43 +0200 |
commit | c2b34b05de5a3fa0b12d749b89d4d655916aac49 (patch) | |
tree | 235ddc6c0f566fb2b97e04a65152a9d049ed87be | |
parent | a83f96d988bfc323251046f11f1f517a128be2ef (diff) |
videoscale: set min value to DBL_MIN to avoid a value of 0.0 that would crash
-rw-r--r-- | gst/videoscale/gstvideoscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index a76dcbbcb..8aae6ce87 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, |