[vlc-commits] directdraw: better debugging of the pixel format used for surfaces

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:03 2016 +0100| [c51d1a84234d2ca044f4bb184b993423e7e73e27] | committer: Jean-Baptiste Kempf

directdraw: better debugging of the pixel format used for surfaces

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

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

 modules/video_output/msw/directdraw.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/msw/directdraw.c b/modules/video_output/msw/directdraw.c
index db06565..9030254 100644
--- a/modules/video_output/msw/directdraw.c
+++ b/modules/video_output/msw/directdraw.c
@@ -1016,7 +1016,7 @@ static int DirectXCreatePictureResourceYuvOverlay(vout_display_t *vd,
         ret = DirectXCreateSurface(vd, &front_surface, fmt, fourcc, true, false, 0);
     if (ret)
         return VLC_EGENERIC;
-    msg_Dbg(vd, "YUV overlay surface created successfully");
+    msg_Dbg(vd, "YUV overlay surface (%4.4s) created successfully", (const char *)&fourcc);
 
     /* Get the back buffer */
     LPDIRECTDRAWSURFACE2 surface;
@@ -1083,7 +1083,7 @@ static int DirectXCreatePictureResourceYuv(vout_display_t *vd,
     LPDIRECTDRAWSURFACE2 surface;
     if (DirectXCreateSurface(vd, &surface, fmt, fourcc, false, allow_sysmem, 0))
         return VLC_EGENERIC;
-    msg_Dbg(vd, "YUV plain surface created successfully");
+    msg_Dbg(vd, "YUV plain surface (%4.4s) created successfully", (const char *)&fourcc);
 
     if (DirectXCheckLockingSurface(surface, surface)) {
         DirectXDestroySurface(surface);
@@ -1143,7 +1143,7 @@ static int DirectXCreatePictureResourceRgb(vout_display_t *vd,
         ret = DirectXCreateSurface(vd, &surface, fmt, 0, false, true, 0);
     if (ret)
         return VLC_EGENERIC;
-    msg_Dbg(vd, "RGB plain surface created successfully");
+    msg_Dbg(vd, "RGB plain surface (%4.4s) created successfully", (const char *)&fmt->i_chroma);
 
     if (DirectXCheckLockingSurface(surface, surface)) {
         DirectXDestroySurface(surface);



More information about the vlc-commits mailing list