]> git.sesse.net Git - mlt/commitdiff
Fix composite_copy_region on locale using comma for decimal.
authorDan Dennedy <dan@dennedy.org>
Sat, 10 Sep 2011 00:37:27 +0000 (17:37 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 10 Sep 2011 00:37:27 +0000 (17:37 -0700)
src/modules/core/transition_composite.c

index 1f5b6fa226fd0e3fdf8d783a06113d69b10562ad..f7054acb33fce012675525af2445444e64181b95 100644 (file)
@@ -919,7 +919,7 @@ static mlt_geometry composite_calculate( mlt_transition this, struct geometry_s
        sprintf( key, "%s.in", name );
        if ( mlt_properties_get( a_props, key ) )
        {
-               sscanf( mlt_properties_get( a_props, key ), "%f,%f,%f,%f,%f,%d,%d", &result->item.x, &result->item.y, &result->item.w, &result->item.h, &result->item.mix, &result->nw, &result->nh );
+               sscanf( mlt_properties_get( a_props, key ), "%f %f %f %f %f %d %d", &result->item.x, &result->item.y, &result->item.w, &result->item.h, &result->item.mix, &result->nw, &result->nh );
        }
        else
        {
@@ -1022,9 +1022,9 @@ mlt_frame composite_copy_region( mlt_transition this, mlt_frame a_frame, mlt_pos
        }
 
        // Store the key
-       sprintf( key, "%s.in=%d,%d,%d,%d,%f,%d,%d", name, x, y, w, h, result.item.mix, width, height );
+       sprintf( key, "%s.in=%d %d %d %d %f %d %d", name, x, y, w, h, result.item.mix, width, height );
        mlt_properties_parse( a_props, key );
-       sprintf( key, "%s.out=%d,%d,%d,%d,%f,%d,%d", name, x, y, w, h, result.item.mix, width, height );
+       sprintf( key, "%s.out=%d %d %d %d %f %d %d", name, x, y, w, h, result.item.mix, width, height );
        mlt_properties_parse( a_props, key );
 
        ds = w * 2;