[vlc-commits] dxva2: fix interface leak

Steve Lhomme git at videolan.org
Thu Oct 5 14:33:33 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Fri Sep 29 14:45:27 2017 +0200| [04c370c2eb887116d6dd592441fc62f83083dc1a] | committer: Jean-Baptiste Kempf

dxva2: fix interface leak

We don't need to get this one, we already hold a reference from calling
IDirect3DSurface9_GetDevice().

Close #18849

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

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

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



More information about the vlc-commits mailing list