[vlc-commits] vout/caopengllayer: fix build with macOS SDKs < 10.14

Marvin Scholz git at videolan.org
Mon Feb 24 18:09:33 CET 2020


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Mon Feb 24 18:08:46 2020 +0100| [d45aa25f12d938a71a001617a39fb9a6eb5efc90] | committer: Marvin Scholz

vout/caopengllayer: fix build with macOS SDKs < 10.14

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

 modules/video_output/caopengllayer.m | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 7681a9e945..2fe399ddfc 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -86,6 +86,12 @@ static int Control          (vout_display_t *vd, int query, va_list ap);
 /**
  * View subclass which is backed by a VLCCAOpenGLLayer
  */
+#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101400
+// macOS SDKs lower than 10.14 did not have a NSViewLayerContentScaleDelegate
+// protocol definition, but its not needed, it will work fine without it as the
+// delegate method even existed before, just not the protocol.
+#define NSViewLayerContentScaleDelegate
+#endif
 @interface VLCVideoLayerView : NSView <CALayerDelegate, NSViewLayerContentScaleDelegate>
 {
     vout_display_t *_vlc_vd; // All accesses to this must be @synchronized(self)



More information about the vlc-commits mailing list