filter_vignette.{c,yml}: better standard values and correct start param name
[melted] / src / modules / frei0r / factory.c
index 568ffb1..4cd8485 100644 (file)
@@ -28,6 +28,7 @@
 #include <dirent.h>
 #include <dlfcn.h>
 #include <stdlib.h>
+#include <limits.h>
 
 extern mlt_filter filter_frei0r_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
 extern mlt_frame filter_process( mlt_filter this, mlt_frame frame );
@@ -108,8 +109,8 @@ static mlt_properties fill_param_info ( mlt_service_type type, const char *servi
                mlt_properties_set ( pnum , "description" , paraminfo.explanation);
                if ( paraminfo.type == F0R_PARAM_DOUBLE ){
                        mlt_properties_set ( pnum , "type" , "float" );
-                       mlt_properties_set ( pnum , "minimum" , "-2" );
-                       mlt_properties_set ( pnum , "maximum" , "2" );
+                       mlt_properties_set ( pnum , "minimum" , "0" );
+                       mlt_properties_set ( pnum , "maximum" , "1" );
                        mlt_properties_set ( pnum , "readonly" , "no" );
                        mlt_properties_set ( pnum , "widget" , "spinner" );
                }else