mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
applemedia: Unconditionally use VideoToolbox on iOS if available
Because we do weak linking now we can always compile it in and check at runtime if it is actually available or not.
This commit is contained in:
parent
82aae4df74
commit
faba47f70d
1 changed files with 0 additions and 14 deletions
14
configure.ac
14
configure.ac
|
@ -513,20 +513,6 @@ if test "x$HAVE_IOS" = "xyes"; then
|
|||
AC_DEFINE(HAVE_IOS, 1, [Define if building for Apple iOS])
|
||||
fi
|
||||
|
||||
if test "x$HAVE_IOS" = "xyes"; then
|
||||
AC_MSG_CHECKING([Checking for __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0])
|
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <AvailabilityMacros.h>]], [[
|
||||
#if !defined(__IPHONE_OS_VERSION_MIN_REQUIRED) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_8_0
|
||||
#error "Need iOS >= 8.0 for VideoToolbox"
|
||||
#endif
|
||||
]])], [ AC_MSG_RESULT(yes)
|
||||
HAVE_VIDEOTOOLBOX="yes"
|
||||
], [ AC_MSG_RESULT(no)
|
||||
HAVE_VIDEOTOOLBOX="no"
|
||||
])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_VIDEOTOOLBOX, test "x$HAVE_VIDEOTOOLBOX" = "xyes")
|
||||
if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
|
||||
AC_DEFINE(HAVE_VIDEOTOOLBOX, 1, [Define if building with VideoToolbox])
|
||||
|
|
Loading…
Reference in a new issue