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:
Sebastian Dröge 2014-09-17 10:39:26 +03:00
parent 82aae4df74
commit faba47f70d

View file

@ -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])