[vlc-devel] [PATCH] direct3d11: fix crash when D3D11 fails to find the compiler

Steve Lhomme robUx4 at videolabs.io
Tue Mar 24 10:39:29 CET 2015


--
replaces the previous patch with the same name
---
 modules/video_output/msw/direct3d11.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 3cc10b9..718d5b9 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -399,6 +399,8 @@ static void Direct3D11Destroy(vout_display_t *vd)
 
     vout_display_sys_t *sys = vd->sys;
 
+    if( sys==NULL )
+        return;
 # if 0
     if (sys->hdxgi_dll)
         FreeLibrary(sys->hdxgi_dll);
-- 
2.3.2




More information about the vlc-devel mailing list