X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_repository.c;h=066b4b5ead9cd07c4b4a9482ecc0cbef595638a4;hb=63dc2f08b9ec162234aa8d6688bf56ec71349acb;hp=45a2e9258afed7c946a0d699df812bfa6f45e201;hpb=7261f622acf6477b5b39ddd677111ca433cd7cd9;p=melted diff --git a/src/framework/mlt_repository.c b/src/framework/mlt_repository.c index 45a2e92..066b4b5 100644 --- a/src/framework/mlt_repository.c +++ b/src/framework/mlt_repository.c @@ -85,12 +85,18 @@ static void *construct_instance( mlt_properties service_properties, const char * // Get the prefix and id of the shared object char *prefix = mlt_properties_get( object_properties, "prefix" ); char *file = mlt_properties_get( object_properties, "id" ); + int flags = RTLD_NOW; + + // Very temporary hack to allow the quicktime plugins to work + // TODO: extend repository to allow this to be used on a case by case basis + if ( !strcmp( service, "kino" ) ) + flags |= RTLD_GLOBAL; // Construct the full file construct_full_file( full_file, prefix, file ); // Open the shared object - object = dlopen( full_file, RTLD_NOW | RTLD_GLOBAL ); + object = dlopen( full_file, flags ); if ( object != NULL ) { // Set it on the properties