[vlc-devel] [PATCH 3/3] dxva2: fix interface leak

Steve Lhomme robux4 at gmail.com
Fri Sep 29 14:45:27 CEST 2017


We don't need to get this one, we already hold a reference from calling
IDirect3DSurface9_GetDevice().
---
 modules/codec/avcodec/dxva2.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index e409aa591f..1d79c6e3d8 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -330,7 +330,6 @@ static int D3dCreateDevice(vlc_va_t *va)
 
     if (sys->dx_sys.d3ddev) {
         msg_Dbg(va, "Reusing Direct3D9 device");
-        IDirect3DDevice9_AddRef(sys->dx_sys.d3ddev);
         return VLC_SUCCESS;
     }
 
-- 
2.12.1



More information about the vlc-devel mailing list