[vlc-commits] d3d11va: fix ID3D11Device leak
Steve Lhomme
git at videolan.org
Fri Feb 10 15:06:55 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Feb 10 15:04:36 2017 +0100| [8d9859ff224177b5cd1aa88dec551b5608add2fa] | committer: Jean-Baptiste Kempf
d3d11va: fix ID3D11Device leak
When reusing the context we already keep a reference via ID3D11DeviceContext_GetDevice()
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d9859ff224177b5cd1aa88dec551b5608add2fa
---
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;
}
More information about the vlc-commits
mailing list