mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
applemedia: Don't include VideoToolbox on iOS < 8.0
It's private API and does not work without a jailbroken device.
This commit is contained in:
parent
775c5600c9
commit
c82fa4f845
2 changed files with 14 additions and 1 deletions
13
configure.ac
13
configure.ac
|
@ -514,6 +514,19 @@ if test "x$HAVE_IOS" = "xyes"; then
|
|||
fi
|
||||
|
||||
AM_CONDITIONAL(HAVE_VIDEOTOOLBOX, test "x$HAVE_VIDEOTOOLBOX" = "xyes")
|
||||
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
|
||||
if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
|
||||
AC_DEFINE(HAVE_VIDEOTOOLBOX, 1, [Define if building with VideoToolbox])
|
||||
fi
|
||||
|
|
|
@ -97,7 +97,7 @@ static GstStaticPadTemplate gst_vtdec_sink_template =
|
|||
#endif
|
||||
|
||||
/* define EnableHardwareAcceleratedVideoDecoder in < 10.9 */
|
||||
#if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_8_0) || (defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED < 1090)
|
||||
#if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED < 1090
|
||||
const CFStringRef
|
||||
kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder =
|
||||
CFSTR ("EnableHardwareAcceleratedVideoDecoder");
|
||||
|
|
Loading…
Reference in a new issue