[vlc-commits] direct3d11: add a debug message when the device is created

Steve Lhomme git at videolan.org
Fri Jun 5 22:46:00 CEST 2015


vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Tue Jun  2 16:16:03 2015 +0200| [15a7ba96eae7f28b8b10793fe885da433e8ae82e] | committer: Jean-Baptiste Kempf

direct3d11: add a debug message when the device is created

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_output/msw/direct3d11.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 7b6fb57..7b2ed90 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -941,7 +941,12 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
         hr = D3D11CreateDevice(NULL, driverAttempts[driver], NULL, creationFlags,
                     NULL, 0, D3D11_SDK_VERSION,
                     &sys->d3ddevice, NULL, &sys->d3dcontext);
-        if (SUCCEEDED(hr)) break;
+        if (SUCCEEDED(hr)) {
+#ifndef NDEBUG
+            msg_Dbg(vd, "Created the D3D11 device 0x%p ctx 0x%p type %d.", sys->d3ddevice, sys->d3dcontext, driverAttempts[driver]);
+#endif
+            break;
+        }
     }
 
     if (FAILED(hr)) {



More information about the vlc-commits mailing list