vlc | branch: master | Steve Lhomme <rob...@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;
 }
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to