Browse Source

be a lazy developer and try to load the .so locally

git.mgm/mediaproxy-ng/2.1
Richard Fuchs 14 years ago
parent
commit
9077fac612
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      daemon/main.c

+ 2
- 0
daemon/main.c View File

@ -371,6 +371,8 @@ void create_everything(struct main_context *ctx) {
if (redis_ip) {
dlh = dlopen(MP_PLUGIN_DIR "/mediaproxy-redis.so", RTLD_NOW | RTLD_GLOBAL);
if (!dlh && errno == ENOENT)
dlh = dlopen("../../mediaproxy-redis/redis.so", RTLD_NOW | RTLD_GLOBAL);
if (!dlh)
die("Failed to open redis plugin, aborting (%s)\n", dlerror());
strp = dlsym(dlh, "__module_version");


Loading…
Cancel
Save