vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Mon Feb 12 
08:47:06 2018 +0100| [b3c8b1f45106d413bc86701ddfdfb6b0bc36a62a] | committer: 
Hugo Beauzée-Luyssen

direct3d9: log why the D3D9 device cannot be created

Ref #19652

(cherry picked from commit 8febe7d112768a1a4d0efe9dce397bd5058a5665)
Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=b3c8b1f45106d413bc86701ddfdfb6b0bc36a62a
---

 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