[vlc-commits] avcapture: Fix compilation with 10.13 SDK

David Fuhrmann git at videolan.org
Sat Oct 27 17:49:08 CEST 2018


vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Oct 21 18:19:53 2018 +0200| [0aa7083930e0c6040253c1018ba7f1a5d80491cf] | committer: David Fuhrmann

avcapture: Fix compilation with 10.13 SDK

(cherry picked from commit fded66483be3cc108affbeef4e86f706950cfb3e)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

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

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

diff --git a/modules/access/avcapture.m b/modules/access/avcapture.m
index c46ca6d69c..b4fee4277d 100644
--- a/modules/access/avcapture.m
+++ b/modules/access/avcapture.m
@@ -42,6 +42,12 @@
 #import <AVFoundation/AVFoundation.h>
 #import <CoreMedia/CoreMedia.h>
 
+ at interface AVCaptureDevice (AVCaptureDeviceAuthorizationSince10_14)
+
++ (void)requestAccessForMediaType:(AVMediaType)mediaType completionHandler:(void (^)(BOOL granted))handler API_AVAILABLE(macos(10.14), ios(7.0));
+
+ at end
+
 /*****************************************************************************
 * Local prototypes
 *****************************************************************************/



More information about the vlc-commits mailing list