X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_repository.c;h=cdda3db33407042f10972e62f51065b389691382;hb=2216e73bda74f15e98e1d5667d518b14f0df8823;hp=9e0b1a879e9f98e272a03eb7e15a573583b2abe2;hpb=ec7f7d58e000242e918c2ae2cebd172bffe6e9d4;p=melted diff --git a/src/framework/mlt_repository.c b/src/framework/mlt_repository.c index 9e0b1a8..cdda3db 100644 --- a/src/framework/mlt_repository.c +++ b/src/framework/mlt_repository.c @@ -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" );