Commit c63c6b53 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

dxva2: warn when closing the device handle failed

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1814614a
......@@ -517,7 +517,11 @@ static void DxDestroyVideoService(vlc_va_t *va)
{
directx_sys_t *dx_sys = &va->sys->dx_sys;
if (va->sys->device)
IDirect3DDeviceManager9_CloseDeviceHandle(va->sys->devmng, va->sys->device);
{
HRESULT hr = IDirect3DDeviceManager9_CloseDeviceHandle(va->sys->devmng, va->sys->device);
if (FAILED(hr))
msg_Warn(va, "Failed to release device handle %x. (hr=0x%lX)", va->sys->device, hr);
}
if (dx_sys->d3ddec)
IDirectXVideoDecoderService_Release(dx_sys->d3ddec);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment