[vlc-devel] [PATCH 2/2] directdraw: list the preferred formats not supported in debug builds

Steve Lhomme robux4 at videolabs.io
Tue Mar 8 11:25:04 CET 2016


---
 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;
-- 
2.7.2.windows.1



More information about the vlc-devel mailing list