[vlc-commits] avcapture: Only redeclare function if it does not exist in sdk

David Fuhrmann git at videolan.org
Sun Oct 21 22:14:31 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Oct 21 21:32:39 2018 +0200| [0f50cd8dcf33a28cead0aae835ecf9a270d461f6] | committer: David Fuhrmann

avcapture: Only redeclare function if it does not exist in sdk

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0f50cd8dcf33a28cead0aae835ecf9a270d461f6
---

 modules/access/avcapture.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/access/avcapture.m b/modules/access/avcapture.m
index ef220b387f..cbc5afb198 100644
--- a/modules/access/avcapture.m
+++ b/modules/access/avcapture.m
@@ -39,14 +39,17 @@
 #include <vlc_dialog.h>
 #include <vlc_access.h>
 
+#import <AvailabilityMacros.h>
 #import <AVFoundation/AVFoundation.h>
 #import <CoreMedia/CoreMedia.h>
 
+#ifndef MAC_OS_X_VERSION_10_14
 @interface AVCaptureDevice (AVCaptureDeviceAuthorizationSince10_14)
 
 + (void)requestAccessForMediaType:(AVMediaType)mediaType completionHandler:(void (^)(BOOL granted))handler API_AVAILABLE(macos(10.14), ios(7.0));
 
 @end
+#endif
 
 /*****************************************************************************
 * Local prototypes



More information about the vlc-commits mailing list