From 631bbb0bc0f69dd038d7cf1e05e8dba8f741e8cd Mon Sep 17 00:00:00 2001 From: blendamedt Date: Tue, 1 Jul 2008 21:01:32 +0000 Subject: [PATCH 1/1] oldfilm/filter_vignette.{c,yml}: 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 | 6 +++--- src/modules/oldfilm/filter_vignette.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/oldfilm/filter_vignette.c b/src/modules/oldfilm/filter_vignette.c index 6ac7d0d..11891cb 100644 --- a/src/modules/oldfilm/filter_vignette.c +++ b/src/modules/oldfilm/filter_vignette.c @@ -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", "" ); } diff --git a/src/modules/oldfilm/filter_vignette.yml b/src/modules/oldfilm/filter_vignette.yml index 2c5ed8d..c0bcbad 100644 --- a/src/modules/oldfilm/filter_vignette.yml +++ b/src/modules/oldfilm/filter_vignette.yml @@ -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 -- 1.7.4.4