X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_filter.c;h=d83e42fbd4436848164b64e9cad6baabffa3d61b;hb=23571c330fd1644833dcb73661ac987eda177200;hp=90dea22c92e26db8686d8c1271fca06875507508;hpb=8a3795b090723264c973d274eedc28da480e76fd;p=melted diff --git a/src/framework/mlt_filter.c b/src/framework/mlt_filter.c index 90dea22..d83e42f 100644 --- a/src/framework/mlt_filter.c +++ b/src/framework/mlt_filter.c @@ -48,13 +48,23 @@ int mlt_filter_init( mlt_filter this, void *child ) mlt_properties_set_position( properties, "in", 0 ); mlt_properties_set_position( properties, "out", 0 ); mlt_properties_set_int( properties, "track", 0 ); - mlt_properties_set( properties, "resource", "" ); return 0; } return 1; } +/** Create a new filter. +*/ + +mlt_filter mlt_filter_new( ) +{ + mlt_filter this = calloc( 1, sizeof( struct mlt_filter_s ) ); + if ( this != NULL ) + mlt_filter_init( this, NULL ); + return this; +} + /** Get the service associated to this filter */