forked from FFmpeg/FFmpeg
Merge commit 'd010e95f86089abe9a3d4d4a66ac8102312d28a4'
* commit 'd010e95f86089abe9a3d4d4a66ac8102312d28a4': avserver: Remove unused loadable module support Conflicts: configure ffserver.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
8740762c43
2 changed files with 1 additions and 42 deletions
6
configure
vendored
6
configure
vendored
|
@ -2284,7 +2284,6 @@ enable dxva2 vaapi vdpau
|
||||||
|
|
||||||
# build settings
|
# build settings
|
||||||
SHFLAGS='-shared -Wl,-soname,$$(@F)'
|
SHFLAGS='-shared -Wl,-soname,$$(@F)'
|
||||||
FFSERVERLDFLAGS=-Wl,-E
|
|
||||||
LIBPREF="lib"
|
LIBPREF="lib"
|
||||||
LIBSUF=".a"
|
LIBSUF=".a"
|
||||||
FULLNAME='$(NAME)$(BUILDSUF)'
|
FULLNAME='$(NAME)$(BUILDSUF)'
|
||||||
|
@ -3412,7 +3411,6 @@ case $target_os in
|
||||||
host_libs=
|
host_libs=
|
||||||
;;
|
;;
|
||||||
sunos)
|
sunos)
|
||||||
FFSERVERLDFLAGS=""
|
|
||||||
SHFLAGS='-shared -Wl,-h,$$(@F)'
|
SHFLAGS='-shared -Wl,-h,$$(@F)'
|
||||||
enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
|
enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
|
||||||
network_extralibs="-lsocket -lnsl"
|
network_extralibs="-lsocket -lnsl"
|
||||||
|
@ -3460,7 +3458,6 @@ case $target_os in
|
||||||
SLIBSUF=".dylib"
|
SLIBSUF=".dylib"
|
||||||
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
|
SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
|
||||||
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
|
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
|
||||||
FFSERVERLDFLAGS=-Wl,-bind_at_load
|
|
||||||
objformat="macho"
|
objformat="macho"
|
||||||
enabled x86_64 && objformat="macho64"
|
enabled x86_64 && objformat="macho64"
|
||||||
enabled_any pic shared ||
|
enabled_any pic shared ||
|
||||||
|
@ -3560,7 +3557,6 @@ case $target_os in
|
||||||
add_cppflags -D_GNU_SOURCE
|
add_cppflags -D_GNU_SOURCE
|
||||||
add_ldflags -Zomf -Zbin-files -Zargs-wild -Zmap
|
add_ldflags -Zomf -Zbin-files -Zargs-wild -Zmap
|
||||||
SHFLAGS='$(SUBDIR)$(NAME).def -Zdll -Zomf'
|
SHFLAGS='$(SUBDIR)$(NAME).def -Zdll -Zomf'
|
||||||
FFSERVERLDFLAGS=""
|
|
||||||
LIBSUF="_s.a"
|
LIBSUF="_s.a"
|
||||||
SLIBPREF=""
|
SLIBPREF=""
|
||||||
SLIBSUF=".dll"
|
SLIBSUF=".dll"
|
||||||
|
@ -3601,7 +3597,6 @@ case $target_os in
|
||||||
;;
|
;;
|
||||||
osf1)
|
osf1)
|
||||||
add_cppflags -D_OSF_SOURCE -D_POSIX_PII -D_REENTRANT
|
add_cppflags -D_OSF_SOURCE -D_POSIX_PII -D_REENTRANT
|
||||||
FFSERVERLDFLAGS=
|
|
||||||
;;
|
;;
|
||||||
minix)
|
minix)
|
||||||
;;
|
;;
|
||||||
|
@ -4679,7 +4674,6 @@ LD_LIB=$LD_LIB
|
||||||
LD_PATH=$LD_PATH
|
LD_PATH=$LD_PATH
|
||||||
DLLTOOL=$dlltool
|
DLLTOOL=$dlltool
|
||||||
LDFLAGS=$LDFLAGS
|
LDFLAGS=$LDFLAGS
|
||||||
LDFLAGS-ffserver=$FFSERVERLDFLAGS
|
|
||||||
SHFLAGS=$(echo $($ldflags_filter $SHFLAGS))
|
SHFLAGS=$(echo $($ldflags_filter $SHFLAGS))
|
||||||
YASMFLAGS=$YASMFLAGS
|
YASMFLAGS=$YASMFLAGS
|
||||||
BUILDSUF=$build_suffix
|
BUILDSUF=$build_suffix
|
||||||
|
|
37
ffserver.c
37
ffserver.c
|
@ -63,9 +63,6 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#if HAVE_DLFCN_H
|
|
||||||
#include <dlfcn.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "cmdutils.h"
|
#include "cmdutils.h"
|
||||||
|
|
||||||
|
@ -3954,33 +3951,6 @@ static enum AVCodecID opt_video_codec(const char *arg)
|
||||||
return p->id;
|
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,
|
static int ffserver_opt_default(const char *opt, const char *arg,
|
||||||
AVCodecContext *avctx, int type)
|
AVCodecContext *avctx, int type)
|
||||||
{
|
{
|
||||||
|
@ -4637,12 +4607,7 @@ static int parse_ffconfig(const char *filename)
|
||||||
redirect = NULL;
|
redirect = NULL;
|
||||||
}
|
}
|
||||||
} else if (!av_strcasecmp(cmd, "LoadModule")) {
|
} else if (!av_strcasecmp(cmd, "LoadModule")) {
|
||||||
get_arg(arg, sizeof(arg), &p);
|
ERROR("Loadable modules no longer supported\n");
|
||||||
#if HAVE_DLOPEN
|
|
||||||
load_module(arg);
|
|
||||||
#else
|
|
||||||
ERROR("Module support not compiled into this version: '%s'\n", arg);
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
ERROR("Incorrect keyword: '%s'\n", cmd);
|
ERROR("Incorrect keyword: '%s'\n", cmd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue