[vlc-devel] [PATCH] vout: win32: disable DirectComposition in UWP apps

Steve Lhomme robux4 at ycbcr.xyz
Wed May 27 16:30:54 CEST 2020


IDCompositionVisual is not available there.
https://docs.microsoft.com/en-us/windows/win32/api/dcomp/nn-dcomp-idcompositionvisual

The local SwapChain is not enabled anyway.
---
 modules/video_output/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/Makefile.am b/modules/video_output/Makefile.am
index f4a8cd721eb0..59e54fe8b60c 100644
--- a/modules/video_output/Makefile.am
+++ b/modules/video_output/Makefile.am
@@ -158,8 +158,10 @@ libdirect3d11_plugin_la_SOURCES = video_output/win32/direct3d11.c \
  video_output/win32/common.c video_output/win32/common.h
 libdirect3d11_plugin_la_LIBADD = libchroma_copy.la libd3d11_common.la $(LIBCOM) -luuid
 if HAVE_DCOMP
+if HAVE_WIN32_DESKTOP
 libdirect3d11_plugin_la_SOURCES += video_output/win32/dcomp_wrapper.cpp video_output/win32/dcomp_wrapper.h
 endif
+endif
 if !HAVE_WINSTORE
 libdirect3d11_plugin_la_SOURCES += video_output/win32/events.c \
  video_output/win32/events.h \
-- 
2.26.2



More information about the vlc-devel mailing list