aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-30 17:18:59 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-30 17:18:59 +0000
commit6638d424d41a61c4004d98f57f8cbbf9188965c9 (patch)
treea0470488bc9adf807528a3fc576cdd9eb3fe8185
parent6c11d48cabf127d254620a110e1deaa952b7f8f7 (diff)
downloadffmpeg-6638d424d41a61c4004d98f57f8cbbf9188965c9.tar.gz
Try to make this compile on platforms with dlfcn.h
Originally committed as revision 1296 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index 1be33ebcef..1d0939d89f 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -35,7 +35,9 @@
#include <netdb.h>
#include <ctype.h>
#include <signal.h>
+#ifdef CONFIG_HAVE_DLFCN
#include <dlfcn.h>
+#endif
#include "ffserver.h"
@@ -3596,6 +3598,7 @@ int opt_video_codec(const char *arg)
/* simplistic plugin support */
+#ifdef CONFIG_HAVE_DLOPEN
void load_module(const char *filename)
{
void *dll;
@@ -3617,6 +3620,7 @@ void load_module(const char *filename)
init_func();
}
+#endif
int parse_ffconfig(const char *filename)
{
@@ -4204,7 +4208,13 @@ int parse_ffconfig(const char *filename)
redirect = NULL;
} else if (!strcasecmp(cmd, "LoadModule")) {
get_arg(arg, sizeof(arg), &p);
+#ifdef CONFIG_HAVE_DLOPEN
load_module(arg);
+#else
+ fprintf(stderr, "%s:%d: Module support not compiled into this version: '%s'\n",
+ filename, line_num, arg);
+ errors++;
+#endif
} else {
fprintf(stderr, "%s:%d: Incorrect keyword: '%s'\n",
filename, line_num, cmd);