dxva2: fix interface leak
authorSteve Lhomme <robux4@gmail.com>
Fri, 29 Sep 2017 12:45:27 +0000 (14:45 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Oct 2017 12:33:19 +0000 (14:33 +0200)
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@videolan.org>
modules/codec/avcodec/dxva2.c

index e409aa5..1d79c6e 100644 (file)
@@ -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;
     }