[vlc-devel] [PATCH 2/3] direct3d9: do not keep the pool pointer when the device is being reopened

Steve Lhomme robux4 at videolabs.io
Tue Nov 7 16:02:01 CET 2017


---
 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 c645b91b4f..afe425edcd 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1059,7 +1059,10 @@ static void Direct3D9DestroyResources(vout_display_t *vd)
 {
     Direct3D9DestroyScene(vd);
     if (vd->sys->sys.pool)
+    {
         picture_pool_Release(vd->sys->sys.pool);
+        vd->sys->sys.pool = NULL;
+    }
     Direct3D9DestroyShaders(vd);
 }
 
-- 
2.14.2



More information about the vlc-devel mailing list