[vlc-commits] direct3d9: do not keep the pool pointer when the device is being reopened

Steve Lhomme git at videolan.org
Tue Nov 7 19:22:38 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Nov  7 16:02:01 2017 +0100| [abd8a983bb36759054cc322441f5da70247ec4ad] | committer: Jean-Baptiste Kempf

direct3d9: do not keep the pool pointer when the device is being reopened

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=abd8a983bb36759054cc322441f5da70247ec4ad
---

 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);
 }
 



More information about the vlc-commits mailing list