slight mods to factory (for future module reporting); pool purge function; consumer...
[melted] / src / framework / mlt_repository.c
index 9e0b1a8..cdda3db 100644 (file)
@@ -90,12 +90,16 @@ static void *construct_instance( mlt_properties service_properties, char *symbol
                construct_full_file( full_file, prefix, file );
 
                // Open the shared object
-               object = dlopen( full_file, RTLD_NOW | RTLD_GLOBAL );
-               if ( object == NULL )
+               object = dlopen( full_file, RTLD_NOW );
+               if ( object != NULL )
+               {
+                       // Set it on the properties
+                       mlt_properties_set_data( object_properties, "dlopen", object, 0, ( mlt_destructor )dlclose, NULL );
+               }
+               else
+               {
                        fprintf( stderr, "Failed to load plugin: %s\n", dlerror() );
-
-               // Set it on the properties
-               mlt_properties_set_data( object_properties, "dlopen", object, 0, ( mlt_destructor )dlclose, NULL );
+               }
        }
 
        // Now check if we have this symbol pointer
@@ -126,6 +130,7 @@ mlt_repository mlt_repository_init( mlt_properties object_list, char *prefix, ch
 
        // Construct full file
        construct_full_file( full_file, prefix, data );
+       strcat( full_file, ".dat" );
 
        // Open the file
        file = fopen( full_file, "r" );