mirror of
https://github.com/mpv-player/mpv
synced 2025-01-16 22:37:28 +01: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:
parent
c8df1799d9
commit
7bb3929a5d
5
configure
vendored
5
configure
vendored
@ -490,7 +490,7 @@ _rpath=no
|
||||
libpostproc=auto
|
||||
libavfilter=auto
|
||||
vf_lavfi=auto
|
||||
libavdevice=no
|
||||
libavdevice=auto
|
||||
_stream_cache=yes
|
||||
_priority=no
|
||||
def_dos_paths="#define HAVE_DOS_PATHS 0"
|
||||
@ -2749,7 +2749,8 @@ echores "$vf_lavfi"
|
||||
echocheck "libavdevice >= 54.0.0"
|
||||
if test "$libavdevice" = auto ; then
|
||||
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
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user