[vlc-commits] windowless-mac: fix compilation
Felix Paul Kühne
git at videolan.org
Sun Apr 17 10:58:50 CEST 2016
npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Apr 17 11:52:21 2016 +0300| [eb54e5824d2b06b97b670e831569f889e668d2eb] | committer: Felix Paul Kühne
windowless-mac: fix compilation
> https://code.videolan.org/videolan/npapi-vlc/commit/eb54e5824d2b06b97b670e831569f889e668d2eb
---
npapi/vlcwindowless_mac.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/npapi/vlcwindowless_mac.cpp b/npapi/vlcwindowless_mac.cpp
index 6f09021..a249a9a 100644
--- a/npapi/vlcwindowless_mac.cpp
+++ b/npapi/vlcwindowless_mac.cpp
@@ -25,7 +25,6 @@
#include "vlcwindowless_mac.h"
#define SHOW_BRANDING 1
-#define OSX_EL_CAPITAN (NSAppKitVersionNumber >= 1404)
CGImageRef createImageNamed(CFStringRef);
@@ -277,7 +276,9 @@ bool VlcWindowlessMac::handle_event(void *event)
if (colorspace == nil) {
/* support for BT.709 and BT.2020 color spaces was introduced with OS X 10.11
* on older OS versions, we can't show correct colors, so we fallback on linear RGB */
- if (OSX_EL_CAPITAN) {
+ SInt32 minorVersion;
+ Gestalt(gestaltSystemVersionMinor, &minorVersion);
+ if (minorVersion >= 11) {
fprintf(stderr, "Guessing color space based on video dimensions (height: %i)", cached_height);
if (cached_height >= 2000 || cached_width >= 3800) {
More information about the vlc-commits
mailing list