Filter optimisations and cleanup part 1
[melted] / src / framework / mlt_filter.c
index 90dea22..d83e42f 100644 (file)
@@ -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", "<filter>" );
 
                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
 */