[vlc-devel] commit: msw vout: More debug (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Jul 18 00:04:17 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jul 18 00:03:15 2009 +0200| [2b086db2b6841fbe46d7450d8398aad79265c63b] | committer: Jean-Baptiste Kempf
msw vout: More debug
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b086db2b6841fbe46d7450d8398aad79265c63b
---
modules/video_output/msw/directx.c | 2 +-
modules/video_output/msw/events.c | 4 ++--
modules/video_output/msw/wingdi.c | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c
index c236617..effb507 100644
--- a/modules/video_output/msw/directx.c
+++ b/modules/video_output/msw/directx.c
@@ -1832,7 +1832,7 @@ static int DirectXLockSurface( vout_thread_t *p_vout, picture_t *p_pic )
dxresult = IDirectDrawSurface2_Lock( p_pic->p_sys->p_surface, NULL,
&p_pic->p_sys->ddsd,
DDLOCK_WAIT, NULL);
-#if 0
+#ifndef NDEBUG
if( dxresult == DDERR_SURFACELOST )
msg_Dbg( p_vout, "DirectXLockSurface: DDERR_SURFACELOST" );
#endif
diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c
index 557dde2..174f71c 100644
--- a/modules/video_output/msw/events.c
+++ b/modules/video_output/msw/events.c
@@ -691,7 +691,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
return;
}
-#if 0
+#ifndef NDEBUG
msg_Dbg( p_vout, "DirectXUpdateRects image_dst_clipped coords:"
" %i,%i,%i,%i",
rect_dest_clipped.left, rect_dest_clipped.top,
@@ -752,7 +752,7 @@ void UpdateRects( vout_thread_t *p_vout, bool b_force )
}
#endif
-#if 0
+#ifndef NDEBUG
msg_Dbg( p_vout, "DirectXUpdateRects image_src_clipped"
" coords: %i,%i,%i,%i",
rect_src_clipped.left, rect_src_clipped.top,
diff --git a/modules/video_output/msw/wingdi.c b/modules/video_output/msw/wingdi.c
index 5db738e..940de59 100644
--- a/modules/video_output/msw/wingdi.c
+++ b/modules/video_output/msw/wingdi.c
@@ -688,8 +688,8 @@ static int GAPILockSurface( vout_thread_t *p_vout, picture_t *p_pic )
return VLC_EGENERIC;
}
-#if 0
- msg_Err( p_vout, "video (%d,%d,%d,%d) display (%d,%d,%d,%d) "
+#ifndef NDEBUG
+ msg_Dbg( p_vout, "video (%d,%d,%d,%d) display (%d,%d,%d,%d) "
"dest (%d,%d,%d,%d)",
video_rect.left, video_rect.right,
video_rect.top, video_rect.bottom,
@@ -701,7 +701,7 @@ static int GAPILockSurface( vout_thread_t *p_vout, picture_t *p_pic )
if( !(p_dest = GXBeginDraw()) )
{
-#if 0
+#ifndef NDEBUG
msg_Err( p_vout, "GXBeginDraw error %d ", GetLastError() );
#endif
return VLC_EGENERIC;
More information about the vlc-devel
mailing list