[vlc-commits] d3d11_player: add missing CloseHandle

Steve Lhomme git at videolan.org
Tue Feb 4 09:58:40 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb  3 13:52:19 2020 +0100| [9abf1e87ba6f75b23ccc3a2c924cd2a10c1ebfe0] | committer: Steve Lhomme

d3d11_player: add missing CloseHandle

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

 doc/libvlc/d3d11_player.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/libvlc/d3d11_player.cpp b/doc/libvlc/d3d11_player.cpp
index b457fd6a46..2f43ecd544 100644
--- a/doc/libvlc/d3d11_player.cpp
+++ b/doc/libvlc/d3d11_player.cpp
@@ -315,6 +315,11 @@ static bool UpdateOutput_cb( void *opaque, const libvlc_video_direct3d_cfg_t *cf
         ctx->resized.textureRenderTarget->Release();
         ctx->resized.textureRenderTarget = NULL;
     }
+    if (ctx->resized.sharedHandled)
+    {
+        CloseHandle(ctx->resized.sharedHandled);
+        ctx->resized.sharedHandled = NULL;
+    }
 
     /* interim texture */
     D3D11_TEXTURE2D_DESC texDesc = { };



More information about the vlc-commits mailing list