]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_filter.c
Filter optimisations and cleanup part 1
[mlt] / src / framework / mlt_filter.c
index 90dea22c92e26db8686d8c1271fca06875507508..d83e42fbd4436848164b64e9cad6baabffa3d61b 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
 */