}
else if ( value[ 0 ] == '@' )
{
- int total = 0;
- int current = 0;
+ double total = 0;
+ double current = 0;
char id[ 255 ];
char op = '+';
if ( isdigit( id[ 0 ] ) )
current = atof( id );
else
- current = mlt_properties_get_int( this, id );
+ current = mlt_properties_get_double( this, id );
// Apply the operation
switch( op )
total *= current;
break;
case '/':
- total /= current;
+ total = total / current;
break;
}
op = *value != '\0' ? *value ++ : ' ';
}
- error = mlt_property_set_int( property, total );
+ error = mlt_property_set_double( property, total );
mlt_properties_do_mirror( this, name );
}