[vlc-devel] [PATCH] direct3d9: use a different vout for HDR content	if possible
    Steve Lhomme 
    robux4 at ycbcr.xyz
       
    Mon Feb  5 18:14:17 CET 2018
    
    
  
Similar to what we do with 360 videos.
It should fallback to OpenGL on Win7.
---
 modules/video_output/win32/direct3d9.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 71b517a59d..d60e92e7ed 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -248,6 +248,9 @@ static int Open(vlc_object_t *object)
     if ( !vd->obj.force && vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR)
         return VLC_EGENERIC; /* let a module who can handle it do it */
 
+    if ( !vd->obj.force && vd->source.mastering.max_luminance != 0)
+        return VLC_EGENERIC; /* let a module who can handle it do it */
+
     OSVERSIONINFO winVer;
     winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     if(GetVersionEx(&winVer) && winVer.dwMajorVersion < 6 && !object->obj.force)
-- 
2.14.2
    
    
More information about the vlc-devel
mailing list