[vlc-devel] [PATCH 1/4] [3.x] vout/caopengllayer: remove HDR support

Marvin Scholz epirat07 at gmail.com
Thu Feb 20 11:27:49 CET 2020


This is anyway not properly supported currently so opting in to it
here does not change anything for the better.
---
 modules/video_output/caopengllayer.m | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index a8cffadb61..133aab06f4 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -43,8 +43,6 @@
 
 #include "opengl/vout_helper.h"
 
-#define OSX_SIERRA_AND_HIGHER (NSAppKitVersionNumber >= 1485)
-
 /*****************************************************************************
  * Vout interface
  *****************************************************************************/
@@ -205,13 +203,6 @@ static int Open (vlc_object_t *p_this)
         vd->display = PictureDisplay;
         vd->control = Control;
 
-        if (OSX_SIERRA_AND_HIGHER) {
-            /* request our screen's HDR mode (introduced in OS X 10.11, but correctly supported in 10.12 only) */
-            if ([sys->cgLayer respondsToSelector:@selector(setWantsExtendedDynamicRangeContent:)]) {
-                [sys->cgLayer setWantsExtendedDynamicRangeContent:YES];
-            }
-        }
-
         /* setup initial state */
         CGSize outputSize;
         if ([container respondsToSelector:@selector(currentOutputSize)])
-- 
2.21.1 (Apple Git-122.3)



More information about the vlc-devel mailing list