added westley.dtd
[melted] / src / modules / fezzik / producer_fezzik.c
index 2976557..b06e420 100644 (file)
@@ -88,6 +88,7 @@ static mlt_producer create_producer( char *file )
                        char temp[ 1024 ];
                        sprintf( temp, "%s/fezzik.dict", mlt_factory_prefix( ) );
                        dictionary = mlt_properties_load( temp );
+                       mlt_factory_register_for_clean_up( dictionary, ( mlt_destructor )mlt_properties_close );
                }
 
                // Convert the lookup string to lower case
@@ -108,6 +109,10 @@ static mlt_producer create_producer( char *file )
                free( lookup );
        }
 
+       // Finally, try just loading as service
+       if ( result == NULL )
+               result = mlt_factory_producer( file, NULL );
+
        return result;
 }