]> git.sesse.net Git - mlt/commitdiff
Fix some default numeric property values in some locales.
authorDan Dennedy <dan@dennedy.org>
Thu, 7 Jul 2011 05:14:52 +0000 (22:14 -0700)
committerDan Dennedy <dan@dennedy.org>
Thu, 7 Jul 2011 05:14:52 +0000 (22:14 -0700)
Strings with a period for decimal separator do not convert correctly in
locales that use comma for the decimal separator.

src/modules/oldfilm/filter_vignette.c
src/modules/plus/filter_charcoal.c

index 2a51e794f939a31bc7456476971c9ccbd8cbcc75..1aa8b53d843d0fe222a1b041e83a9d3f7cc1b063 100644 (file)
@@ -122,11 +122,11 @@ mlt_filter filter_vignette_init( mlt_profile profile, mlt_service_type type, con
                */
                
                this->process = filter_process;
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "smooth", "0.8" );
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "radius", "0.5" );
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "x", "0.5" );
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "y", "0.5" );
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "opacity", "0.0" );
+               mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "smooth", 0.8 );
+               mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "radius", 0.5 );
+               mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "x", 0.5 );
+               mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "y", 0.5 );
+               mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "opacity", 0.0 );
 
                //mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "end", "" );
 
index 703b32249c17d8b8f47bb748758d2cb7bc5c7a34..40bc1a1faee116f8a04e1450964ad75c294d982a 100644 (file)
@@ -165,10 +165,10 @@ mlt_filter filter_charcoal_init( mlt_profile profile, mlt_service_type type, con
        if ( this != NULL )
        {
                this->process = filter_process;
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "x_scatter", "1" );
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "y_scatter", "1" );
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "scale", "1.5" );
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "mix", "0" );
+               mlt_properties_set_int( MLT_FILTER_PROPERTIES( this ), "x_scatter", 1 );
+               mlt_properties_set_int( MLT_FILTER_PROPERTIES( this ), "y_scatter", 1 );
+               mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "scale", 1.5 );
+               mlt_properties_set_double( MLT_FILTER_PROPERTIES( this ), "mix", 0.0 );
        }
        return this;
 }