[vlc-devel] commit: Remove libvlccore load hack ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 14 19:02:47 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Feb 14 14:02:07 2009 +0200| [8a28a8dfa7f7b44fb3cd59c85799e017b22166a1] | committer: Rémi Denis-Courmont 

Remove libvlccore load hack

It did not work properly, and was GNU specific anyway.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a28a8dfa7f7b44fb3cd59c85799e017b22166a1
---

 src/modules/os.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/src/modules/os.c b/src/modules/os.c
index 82e2ee8..58fef51 100644
--- a/src/modules/os.c
+++ b/src/modules/os.c
@@ -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;




More information about the vlc-devel mailing list