[vlc-devel] [PATCH] direct3d9: fix crash when closing without a picture pool

Steve Lhomme robux4 at videolabs.io
Fri Jul 7 07:36:40 CEST 2017


It's done in all other windows vout.
---
 modules/video_output/win32/direct3d9.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 1d281b3116..407c5e81f0 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1048,7 +1048,8 @@ static int Direct3D9CreateResources(vout_display_t *vd, video_format_t *fmt)
 static void Direct3D9DestroyResources(vout_display_t *vd)
 {
     Direct3D9DestroyScene(vd);
-    picture_pool_Release(vd->sys->sys.pool);
+    if (vd->sys->sys.pool)
+        picture_pool_Release(vd->sys->sys.pool);
     Direct3D9DestroyShaders(vd);
 }
 
-- 
2.12.1



More information about the vlc-devel mailing list