int err;
/* open the object file */
- dl_handle = dlopen (filename, RTLD_NOW|RTLD_GLOBAL);
+ dl_handle = dlopen (filename, RTLD_NOW);
if (!dl_handle)
{
mlt_log_info( NULL, "%s: error opening shared object file '%s': %s\n",
#ifdef __DARWIN__
if (!get_descriptor (0)) {
void (*constructor)(void) = dlsym (dl_handle, "_init");
- constructor();
+ if (constructor) constructor();
}
#endif