[vlc-commits] direct3d9: log why the D3D9 device cannot be created
Steve Lhomme
git at videolan.org
Mon Feb 12 09:01:05 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 12 08:47:06 2018 +0100| [8febe7d112768a1a4d0efe9dce397bd5058a5665] | committer: Steve Lhomme
direct3d9: log why the D3D9 device cannot be created
Ref #19652
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8febe7d112768a1a4d0efe9dce397bd5058a5665
---
modules/video_chroma/d3d9_fmt.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/video_chroma/d3d9_fmt.c b/modules/video_chroma/d3d9_fmt.c
index 8ade6e6564..5e78f96668 100644
--- a/modules/video_chroma/d3d9_fmt.c
+++ b/modules/video_chroma/d3d9_fmt.c
@@ -123,9 +123,10 @@ HRESULT D3D9_CreateDevice(vlc_object_t *o, d3d9_handle_t *hd3d, HWND hwnd,
&out->pp, &out->dev);
if (SUCCEEDED(hr))
- {
out->owner = true;
- }
+ else
+ msg_Err(o, "failed to create the D3D9%s device %d/%d flags 0x%x. (hr=0x%lX)",
+ hd3d->use_ex?"Ex":"", AdapterToUse, DeviceType, creationFlags, hr);
return hr;
}
More information about the vlc-commits
mailing list