From 9077fac6127d83639b4536ea272885b7e29045f8 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 7 Aug 2012 17:52:06 +0000 Subject: [PATCH] be a lazy developer and try to load the .so locally --- daemon/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/main.c b/daemon/main.c index 82725973c..ec874b928 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -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");