aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-19 10:25:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-19 10:26:07 +0200
commit8740762c43dc92cfefa58769bb8cfade82aa695c (patch)
tree1550bb212ec5689d8441dc60f3decb0a02e6058d /ffserver.c
parent454c89dde3afd8f84d2631dd87da47bf23de3fe3 (diff)
parentd010e95f86089abe9a3d4d4a66ac8102312d28a4 (diff)
downloadffmpeg-8740762c43dc92cfefa58769bb8cfade82aa695c.tar.gz
Merge commit 'd010e95f86089abe9a3d4d4a66ac8102312d28a4'
* commit 'd010e95f86089abe9a3d4d4a66ac8102312d28a4': avserver: Remove unused loadable module support Conflicts: configure ffserver.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/ffserver.c b/ffserver.c
index 45ec386a21..e7ec17098c 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -63,9 +63,6 @@
#include <time.h>
#include <sys/wait.h>
#include <signal.h>
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
#include "cmdutils.h"
@@ -3954,33 +3951,6 @@ static enum AVCodecID opt_video_codec(const char *arg)
return p->id;
}
-/* simplistic plugin support */
-
-#if HAVE_DLOPEN
-static void load_module(const char *filename)
-{
- void *dll;
- void (*init_func)(void);
- dll = dlopen(filename, RTLD_NOW);
- if (!dll) {
- fprintf(stderr, "Could not load module '%s' - %s\n",
- filename, dlerror());
- return;
- }
-
- init_func = dlsym(dll, "ffserver_module_init");
- if (!init_func) {
- fprintf(stderr,
- "%s: init function 'ffserver_module_init()' not found\n",
- filename);
- dlclose(dll);
- return;
- }
-
- init_func();
-}
-#endif
-
static int ffserver_opt_default(const char *opt, const char *arg,
AVCodecContext *avctx, int type)
{
@@ -4637,12 +4607,7 @@ static int parse_ffconfig(const char *filename)
redirect = NULL;
}
} else if (!av_strcasecmp(cmd, "LoadModule")) {
- get_arg(arg, sizeof(arg), &p);
-#if HAVE_DLOPEN
- load_module(arg);
-#else
- ERROR("Module support not compiled into this version: '%s'\n", arg);
-#endif
+ ERROR("Loadable modules no longer supported\n");
} else {
ERROR("Incorrect keyword: '%s'\n", cmd);
}