#include <string.h>
#define CLAMP( x, min, max ) (x) < (min) ? (min) : (x) > (max) ? (max) : (x)
-#define UNSET "unset"
/** Do it :-).
*/
// Use animated "level" property only if it has been set since init
char* level_property = mlt_properties_get( MLT_FILTER_PROPERTIES( filter ), "level" );
- if ( strcmp( level_property, UNSET ) != 0 )
+ if ( level_property != NULL )
{
level = mlt_properties_anim_get_double( properties, "level", position, length );
}
{
filter->process = filter_process;
mlt_properties_set( MLT_FILTER_PROPERTIES( filter ), "start", arg == NULL ? "1" : arg );
- mlt_properties_set( MLT_FILTER_PROPERTIES( filter ), "level", UNSET );
+ mlt_properties_set( MLT_FILTER_PROPERTIES( filter ), "level", NULL );
}
return filter;
}