Add missing dlopen flag (if and only if _needed_).
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 12 Feb 2009 14:03:35 +0000 (16:03 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 12 Feb 2009 14:04:19 +0000 (16:04 +0200)
Pointed-out-by: jpd@m2x.nl
src/modules/os.c

index 53368e4..82e2ee8 100644 (file)
@@ -137,7 +137,7 @@ int module_Call( vlc_object_t *obj, module_t *p_module )
 static void load_libvlccore( void )
 {
     if( !dlsym( RTLD_DEFAULT, "libvlc_Quit" )
-     && !dlopen( "libvlccore.so", RTLD_GLOBAL|RTLD_NOLOAD ) )
+     && !dlopen( "libvlccore.so", RTLD_LAZY|RTLD_GLOBAL|RTLD_NOLOAD ) )
         fprintf( stderr, "ERROR: failed loading libvlccore\n" );
 }
 #endif