summaryrefslogtreecommitdiff
path: root/avserver.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-07-17 18:24:23 +0300
committerMartin Storsjö <martin@martin.st>2013-07-18 17:25:49 +0300
commitd010e95f86089abe9a3d4d4a66ac8102312d28a4 (patch)
tree8805a94c2784c7d4a8d64de692250b767d680481 /avserver.c
parent3ac7fa81b2383ff2697e5d1a76ff79be205f011a (diff)
avserver: Remove unused loadable module support
There is no record of this ever being used at all, anywhere, since the feature was added in 2effd274466. This gets rid of extra linker tricks just to support a feature that isn't used, simplifying portability to other platforms. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'avserver.c')
-rw-r--r--avserver.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/avserver.c b/avserver.c
index 16a24fff9c..976c89583b 100644
--- a/avserver.c
+++ b/avserver.c
@@ -58,9 +58,6 @@
#include <time.h>
#include <sys/wait.h>
#include <signal.h>
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
#include "cmdutils.h"
@@ -3914,32 +3911,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, "avserver_module_init");
- if (!init_func) {
- fprintf(stderr,
- "%s: init function 'avserver_module_init()' not found\n",
- filename);
- dlclose(dll);
- }
-
- init_func();
-}
-#endif
-
static int avserver_opt_default(const char *opt, const char *arg,
AVCodecContext *avctx, int type)
{
@@ -4596,12 +4567,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);
}