vlc | branch: master | David Fuhrmann <[email protected]> | 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 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
