]> git.sesse.net Git - vlc/commitdiff
Remove libvlccore load hack
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 14 Feb 2009 12:02:07 +0000 (14:02 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 14 Feb 2009 18:02:31 +0000 (20:02 +0200)
It did not work properly, and was GNU specific anyway.

src/modules/os.c

index 82e2ee820cd6098a841d12c18896a6684f940736..58fef5189ce2f46899627c9232feaecb9b0223ef 100644 (file)
@@ -132,16 +132,6 @@ int module_Call( vlc_object_t *obj, module_t *p_module )
     return 0;
 }
 
-#if defined (RTLD_NOLOAD)
-/* Make sure libvlccore is in the global namespace */
-static void load_libvlccore( void )
-{
-    if( !dlsym( RTLD_DEFAULT, "libvlc_Quit" )
-     && !dlopen( "libvlccore.so", RTLD_LAZY|RTLD_GLOBAL|RTLD_NOLOAD ) )
-        fprintf( stderr, "ERROR: failed loading libvlccore\n" );
-}
-#endif
-
 /**
  * Load a dynamically linked library using a system dependent method.
  *
@@ -218,10 +208,6 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
     }
 
 #elif defined(HAVE_DL_DLOPEN)
-# if defined (RTLD_NOLOAD)
-    static pthread_once_t once = PTHREAD_ONCE_INIT;
-    pthread_once( &once, &load_libvlccore );
-# endif
 
 # if defined (RTLD_NOW)
     const int flags = RTLD_NOW;