0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

configure: enable libavdevice by default

Used to be disabled by default, because libavdevice depends on
libavfilter, and earlier versions of libavfilter exports symbols that
clash with mpv's due to its MPlayer filter wrapper. Our configure script
explicitly detects these symbols now, and we can use that to safely
auto-detect libavdevice too. If we detect that libavfilter can't be
safely used, libavdevice is disabled as well.
This commit is contained in:
wm4 2013-04-23 14:11:43 +02:00
parent c8df1799d9
commit 7bb3929a5d

5
configure vendored
View File

@ -490,7 +490,7 @@ _rpath=no
libpostproc=auto libpostproc=auto
libavfilter=auto libavfilter=auto
vf_lavfi=auto vf_lavfi=auto
libavdevice=no libavdevice=auto
_stream_cache=yes _stream_cache=yes
_priority=no _priority=no
def_dos_paths="#define HAVE_DOS_PATHS 0" def_dos_paths="#define HAVE_DOS_PATHS 0"
@ -2749,7 +2749,8 @@ echores "$vf_lavfi"
echocheck "libavdevice >= 54.0.0" echocheck "libavdevice >= 54.0.0"
if test "$libavdevice" = auto ; then if test "$libavdevice" = auto ; then
libavdevice=no libavdevice=no
if pkg_config_add "libavdevice >= 54.0.0" ; then # Usually, libavdevice depends on libavfilter
if test "$libavfilter" = yes && pkg_config_add "libavdevice >= 54.0.0" ; then
libavdevice=yes libavdevice=yes
fi fi
fi fi