From 3c667badb4119dd1a4fe5a686c6a378fb8f92795 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Mon, 5 Feb 2018 18:01:31 +0100 Subject: [PATCH] direct3d9: use a different vout for HDR content if possible 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.11.4.GIT