[vlc-devel] [PATCH 2/3] d3d11va: fix ID3D11Device leak
Steve Lhomme
robux4 at videolabs.io
Fri Feb 10 15:04:36 CET 2017
When reusing the context we already keep a reference via ID3D11DeviceContext_GetDevice()
---
modules/codec/avcodec/d3d11va.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 414ad08..4ef9ac8 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -556,7 +556,6 @@ static int D3dCreateDevice(vlc_va_t *va)
if (dx_sys->d3ddev && va->sys->d3dctx) {
msg_Dbg(va, "Reusing Direct3D11 device");
ID3D11DeviceContext_AddRef(va->sys->d3dctx);
- ID3D11Device_AddRef(dx_sys->d3ddev);
return VLC_SUCCESS;
}
--
2.10.2
More information about the vlc-devel
mailing list