[vlc-devel] [PATCH] direct3d11: avoid passing through all the code for nothing with D3D9 opaque

Steve Lhomme robux4 at videolabs.io
Mon Apr 10 16:07:10 CEST 2017


---
 modules/video_output/win32/direct3d11.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 756e165f34..565adb6e04 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -511,6 +511,10 @@ static int Open(vlc_object_t *object)
 {
     vout_display_t *vd = (vout_display_t *)object;
 
+    if ( vd->source.i_chroma == VLC_CODEC_D3D9_OPAQUE ||
+         vd->source.i_chroma == VLC_CODEC_D3D9_OPAQUE_10B )
+        return VLC_EGENERIC;
+
 #if !VLC_WINSTORE_APP
     int ret = OpenHwnd(vd);
 #else
-- 
2.11.1



More information about the vlc-devel mailing list