Commit 432b3d35 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

Pointed-out-by: jpd@m2x.nl
parent e127458f
...@@ -137,7 +137,7 @@ int module_Call( vlc_object_t *obj, module_t *p_module ) ...@@ -137,7 +137,7 @@ int module_Call( vlc_object_t *obj, module_t *p_module )
static void load_libvlccore( void ) static void load_libvlccore( void )
{ {
if( !dlsym( RTLD_DEFAULT, "libvlc_Quit" ) 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" ); fprintf( stderr, "ERROR: failed loading libvlccore\n" );
} }
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment