[vlc-devel] commit: Add missing dlopen flag (if and only if _needed_). ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Feb 12 16:38:00 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Feb 12 16:03:35 2009 +0200| [432b3d357214518e20987f438cfd8eec2f01e850] | committer: Rémi Denis-Courmont 

Add missing dlopen flag (if and only if _needed_).

Pointed-out-by: jpd at m2x.nl

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

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

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




More information about the vlc-devel mailing list