/** Constructor for the filter.
*/
-mlt_filter filter_resize_init( void *arg )
+mlt_filter filter_resize_init( char *arg )
{
mlt_filter this = calloc( sizeof( struct mlt_filter_s ), 1 );
if ( mlt_filter_init( this, this ) == 0 )
{
this->process = filter_process;
- mlt_properties_set( mlt_filter_properties( this ), "scale", "off" );
+ if ( arg != NULL )
+ mlt_properties_set( mlt_filter_properties( this ), "scale", arg );
+ else
+ mlt_properties_set( mlt_filter_properties( this ), "scale", "off" );
}
return this;
}