[vlc-commits] dxva2: remove unused D3dDestroyDevice
Steve Lhomme
git at videolan.org
Mon Oct 21 13:25:21 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct 21 11:46:24 2019 +0200| [dacae84ba0b0b67883fcc4525912e39907c8e738] | committer: Steve Lhomme
dxva2: remove unused D3dDestroyDevice
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dacae84ba0b0b67883fcc4525912e39907c8e738
---
modules/codec/avcodec/dxva2.c | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 0ca8f74290..6b632b28a9 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -425,25 +425,6 @@ static int D3dCreateDevice(vlc_va_t *va)
return VLC_SUCCESS;
}
-/**
- * It releases a Direct3D device and its resources.
- */
-static void D3dDestroyDevice(vlc_va_t *va)
-{
- vlc_va_sys_t *sys = va->sys;
- HRESULT hr = IDirect3DDeviceManager9_CloseDeviceHandle(sys->devmng, sys->device);
- if (FAILED(hr))
- msg_Warn(va, "Failed to release device handle 0x%p. (hr=0x%lX)", sys->device, hr);
- IDirectXVideoDecoderService_Release(sys->d3ddec);
- IDirect3DDeviceManager9_Release(sys->devmng);
- D3D9_ReleaseDevice(&sys->d3d_dev);
- D3D9_Destroy( &sys->hd3d );
- if (sys->dxva2_dll)
- FreeLibrary(sys->dxva2_dll);
-
- free(sys);
-}
-
static void ReleaseInputList(input_list_t *p_list)
{
CoTaskMemFree(p_list->list);
More information about the vlc-commits
mailing list