]> git.sesse.net Git - mlt/commitdiff
oldfilm/filter_vignette.{c,yml}:
authorblendamedt <blendamedt@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 1 Jul 2008 21:01:32 +0000 (21:01 +0000)
committerblendamedt <blendamedt@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 1 Jul 2008 21:01:32 +0000 (21:01 +0000)
   change format for parameters, to avoid converting problems with different locales

git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1155 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/oldfilm/filter_vignette.c
src/modules/oldfilm/filter_vignette.yml

index 6ac7d0de741025184d3001ba1a9e280c11b9bdfd..11891cb24e6bdacfb553414db193b768e59905f2 100644 (file)
@@ -41,9 +41,9 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                float smooth_s=80,radius_s=50,x_s=50,y_s=50,opac_s=0;
                float smooth_e=80,radius_e=50,x_e=50,y_e=50,opac_e=0;
                
-               sscanf(mlt_properties_get(MLT_FILTER_PROPERTIES( filter ), "start"  ), "%f:%f,%fx%f,%f",&smooth_s,&radius_s,&x_s,&y_s,&opac_s);
+               sscanf(mlt_properties_get(MLT_FILTER_PROPERTIES( filter ), "start"  ), "%f:%f:%fx%f:%f",&smooth_s,&radius_s,&x_s,&y_s,&opac_s);
                if (mlt_properties_get(MLT_FILTER_PROPERTIES( filter ), "end"  ) ){
-                       sscanf(mlt_properties_get(MLT_FILTER_PROPERTIES( filter ), "end"  ), "%f:%f,%fx%f,%f",&smooth_e,&radius_e,&x_e,&y_e,&opac_e);
+                       sscanf(mlt_properties_get(MLT_FILTER_PROPERTIES( filter ), "end"  ), "%f:%f:%fx%f:%f",&smooth_e,&radius_e,&x_e,&y_e,&opac_e);
                }else{
                        smooth_e=smooth_s;
                        radius_e=radius_s;
@@ -124,7 +124,7 @@ mlt_filter filter_vignette_init( mlt_profile profile, mlt_service_type type, con
                */
                
                this->process = filter_process;
-               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "start", "80:50:50x50:0" );
+               mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "start", "80:50,50x50,0" );
                //mlt_properties_set( MLT_FILTER_PROPERTIES( this ), "end", "" );
 
        }
index 2c5ed8d24695a638d88492d8f9f68f8f21019b3a..c0bcbad3c78d9bc36d17d28c57580b6e9417c1de 100644 (file)
@@ -29,7 +29,7 @@ parameters:
     readonly: no
     required: yes
     mutable: no
-    format: %d:%d,%dx%d,%d
+    format: %d:%d:%dx%d:%d
     minimum: 0;0;0;0;0
     maximum: 100;100;100;100;100
     default: 80;50;50;50;0