]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_factory.c
Cloning optimisations and introduction of the service parser
[mlt] / src / framework / mlt_factory.c
index f183baabf2419ffa36a4244d75c6dfb7382a359a..dbaf2dbd58f7bdbb01e6c28e46c890cf9de85940 100644 (file)
@@ -170,11 +170,13 @@ mlt_consumer mlt_factory_consumer( char *service, void *input )
 
        if ( obj != NULL )
        {
+               mlt_filter filter = mlt_factory_filter( "data_show", NULL );
                mlt_properties properties = mlt_consumer_properties( obj );
                mlt_properties_set_int( properties, "_unique_id", ++ unique_id );
                mlt_properties_set( properties, "mlt_type", "consumer" );
                mlt_properties_set( properties, "mlt_service", service );
-               mlt_service_attach( mlt_consumer_service( obj ), mlt_factory_filter( "data_show", NULL ) );
+               mlt_service_attach( mlt_consumer_service( obj ), filter );
+               mlt_filter_close( filter );
        }
        return obj;
 }