[vlc-commits] videotoolbox: Do not guard macOS settings
David Fuhrmann
git at videolan.org
Wed Oct 3 15:59:32 CEST 2018
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Wed Oct 3 15:55:49 2018 +0200| [769ffbcf179c3af7acbc5592a07ad7a5a584c72b] | committer: David Fuhrmann
videotoolbox: Do not guard macOS settings
Those symbols are available since 10.9.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=769ffbcf179c3af7acbc5592a07ad7a5a584c72b
---
modules/codec/videotoolbox.m | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index ab94598b85..4719008dfe 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -62,7 +62,7 @@
#endif
-#if (!TARGET_OS_OSX || MAC_OS_X_VERSION_MAX_ALLOWED < 1090)
+#if (!TARGET_OS_OSX)
const CFStringRef kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder = CFSTR("EnableHardwareAcceleratedVideoDecoder");
const CFStringRef kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder = CFSTR("RequireHardwareAcceleratedVideoDecoder");
#endif
@@ -1138,9 +1138,6 @@ static CFMutableDictionaryRef CreateSessionDescriptionFormat(decoder_t *p_dec,
CFDictionarySetValue(decoderConfiguration, kCVImageBufferYCbCrMatrixKey,
yuvmatrix);
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wpartial-availability"
-
/* enable HW accelerated playback, since this is optional on OS X
* note that the backend may still fallback on software mode if no
* suitable hardware is available */
@@ -1155,8 +1152,6 @@ static CFMutableDictionaryRef CreateSessionDescriptionFormat(decoder_t *p_dec,
kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder,
kCFBooleanTrue);
-#pragma clang diagnostic pop
-
CFDictionarySetValue(decoderConfiguration,
kVTDecompressionPropertyKey_FieldMode,
kVTDecompressionProperty_FieldMode_DeinterlaceFields);
More information about the vlc-commits
mailing list