[vlc-commits] videotoolbox: Use new syntax to declare availability
David Fuhrmann
git at videolan.org
Wed Oct 3 15:59:30 CEST 2018
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Wed Oct 3 15:51:40 2018 +0200| [f6d4aec4933afff41e616a331cc2bd294e43db56] | committer: David Fuhrmann
videotoolbox: Use new syntax to declare availability
Stuff needs to be compiled with the latest SDK nowadays.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6d4aec4933afff41e616a331cc2bd294e43db56
---
modules/codec/videotoolbox.m | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index bafcffa90f..407c1d8104 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1501,17 +1501,9 @@ static void CloseDecoder(vlc_object_t *p_this)
static BOOL deviceSupportsHEVC()
{
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wpartial-availability"
-
-#if (TARGET_OS_OSX && MAC_OS_X_VERSION_MAX_ALLOWED >= 101300) || \
- (TARGET_OS_IPHONE && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000) || \
- (TARGET_OS_TV && __TV_OS_VERSION_MAX_ALLOWED >= 110000)
- if (VTIsHardwareDecodeSupported != nil)
+ if (@available(macOS 10.13, iOS 11.0, tvOS 11.0, *))
return VTIsHardwareDecodeSupported(kCMVideoCodecType_HEVC);
else
-#endif
-#pragma clang diagnostic pop
return NO;
}
More information about the vlc-commits
mailing list