[vlc-commits] Fix a few debug messages
Rémi Denis-Courmont
git at videolan.org
Mon Sep 5 19:43:01 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Sep 5 20:35:52 2011 +0300| [a7f6a75da311ec6a9e96a60910a6b0c2c3e422d0] | committer: Rémi Denis-Courmont
Fix a few debug messages
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7f6a75da311ec6a9e96a60910a6b0c2c3e422d0
---
modules/access/http.c | 5 +----
modules/codec/quicktime.c | 2 +-
modules/codec/svcdsub.c | 24 +++++++++++-------------
3 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index c4cb7f3..700cccd 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -490,14 +490,11 @@ connect:
if( !vlc_object_alive (p_access) || Connect( p_access, 0 ) )
goto error;
-#ifndef NDEBUG
case 0:
break;
default:
- msg_Err( p_access, "You should not be here" );
- abort();
-#endif
+ assert(0);
}
if( p_sys->i_code == 401 )
diff --git a/modules/codec/quicktime.c b/modules/codec/quicktime.c
index 0904d4d..7c7d773 100644
--- a/modules/codec/quicktime.c
+++ b/modules/codec/quicktime.c
@@ -912,7 +912,7 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
p_sys->i_late = 0;
}
#ifndef NDEBUG
- msg_Dbg( p_dec, "bufsize: %d", (int)p_block->i_buffer);
+ msg_Dbg( p_dec, "bufsize: %zu", p_block->i_buffer);
#endif
if( p_sys->i_late > 10 )
diff --git a/modules/codec/svcdsub.c b/modules/codec/svcdsub.c
index 5fcc74d..5467c0e 100644
--- a/modules/codec/svcdsub.c
+++ b/modules/codec/svcdsub.c
@@ -394,20 +394,18 @@ static void ParseHeader( decoder_t *p_dec, block_t *p_block )
p_sys->metadata_length = p_sys->i_image_offset;
#ifndef NDEBUG
+ msg_Dbg( p_dec, "x-start: %d, y-start: %d, width: %d, height %d, "
+ "spu size: %zu, duration: %"PRIu64" (d:%zu p:%"PRIu16")",
+ p_sys->i_x_start, p_sys->i_y_start,
+ p_sys->i_width, p_sys->i_height,
+ p_sys->i_spu_size, p_sys->i_duration,
+ p_sys->i_image_length, p_sys->i_image_offset);
+
+ for( i = 0; i < 4; i++ )
{
- msg_Dbg( p_dec, "x-start: %d, y-start: %d, width: %d, height %d, "
- "spu size: %zu, duration: %"PRIu64" (d:%zu p:%"PRIu16")",
- p_sys->i_x_start, p_sys->i_y_start,
- p_sys->i_width, p_sys->i_height,
- p_sys->i_spu_size, p_sys->i_duration,
- p_sys->i_image_length, p_sys->i_image_offset);
-
- for( i = 0; i < 4; i++ )
- {
- msg_Dbg( p_dec, "palette[%d]= T: %2x, Y: %2x, u: %2x, v: %2x", i,
- p_sys->p_palette[i][3], p_sys->p_palette[i][0],
- p_sys->p_palette[i][1], p_sys->p_palette[i][2] );
- }
+ msg_Dbg( p_dec, "palette[%d]= T: %2x, Y: %2x, u: %2x, v: %2x", i,
+ p_sys->p_palette[i][3], p_sys->p_palette[i][0],
+ p_sys->p_palette[i][1], p_sys->p_palette[i][2] );
}
#endif
}
More information about the vlc-commits
mailing list