[vlc-commits] d3d11_surface: fix an extra ID3D11Device release
Steve Lhomme
git at videolan.org
Tue Jan 7 10:22:58 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 7 10:19:05 2020 +0100| [df46c3b1bbe5fdab75bea2674db8ef742257eee5] | committer: Steve Lhomme
d3d11_surface: fix an extra ID3D11Device release
We did not add a reference to the device here, so don't release one.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df46c3b1bbe5fdab75bea2674db8ef742257eee5
---
modules/hw/d3d11/d3d11_surface.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index 665b293026..2e876e325b 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -213,7 +213,6 @@ static int assert_staging(filter_t *p_filter, filter_sys_t *sys, DXGI_FORMAT for
}
}
#endif
- ID3D11Device_Release(d3d_dev.d3ddevice);
if (FAILED(hr)) {
msg_Err(p_filter, "Failed to create a %s staging texture to extract surface pixels (hr=0x%lX)", DxgiFormatToStr(texDesc.Format), hr );
return VLC_EGENERIC;
More information about the vlc-commits
mailing list