[vlc-commits] videotoolbox: Fix availability build error
Marvin Scholz
git at videolan.org
Sat Sep 23 17:14:04 CEST 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Sep 23 16:50:38 2017 +0200| [8434b122e0585928b21a580b882e4ea935893734] | committer: Marvin Scholz
videotoolbox: Fix availability build error
This ignores the availability build error about the code using
constants only introduced in a macOS version higher than our deployment
target.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8434b122e0585928b21a580b882e4ea935893734
---
modules/codec/videotoolbox.m | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 1662d8e39c..88bbf24c23 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -652,6 +652,9 @@ static CFMutableDictionaryRef CreateSessionDescriptionFormat(decoder_t *p_dec,
pixelaspectratio);
CFRelease(pixelaspectratio);
+#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 */
@@ -666,6 +669,8 @@ 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