[vlc-commits] directdraw: list the preferred formats not supported in debug builds

Steve Lhomme git at videolan.org
Tue Mar 8 11:35:36 CET 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Mar  8 11:25:04 2016 +0100| [b26c633b629445ccbd9f7492377da610a60d7ffd] | committer: Jean-Baptiste Kempf

directdraw: list the preferred formats not supported in debug builds

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

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

 modules/video_output/msw/directdraw.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/video_output/msw/directdraw.c b/modules/video_output/msw/directdraw.c
index 9030254..e5bc32c 100644
--- a/modules/video_output/msw/directdraw.c
+++ b/modules/video_output/msw/directdraw.c
@@ -1188,10 +1188,20 @@ static int DirectXCreatePictureResource(vout_display_t *vd,
 
                 if (pass == 0) {
                     if (DirectXCreatePictureResourceYuvOverlay(vd, fmt, fourcc))
+                    {
+#ifndef NDEBUG
+                        msg_Dbg(vd, "Failed to create YUV overlay surface %4.4s", (const char*)&fourcc);
+#endif
                         continue;
+                    }
                 } else {
                     if (DirectXCreatePictureResourceYuv(vd, fmt, fourcc))
+                    {
+#ifndef NDEBUG
+                        msg_Dbg(vd, "Failed to create YUV surface %4.4s", (const char*)&fourcc);
+#endif
                         continue;
+                    }
                 }
                 /* */
                 *use_overlay = pass == 0;



More information about the vlc-commits mailing list