Browse Source

Fix a few debug messages

pull/2/head
Rémi Denis-Courmont 15 years ago
parent
commit
a7f6a75da3
  1. 5
      modules/access/http.c
  2. 2
      modules/codec/quicktime.c
  3. 24
      modules/codec/svcdsub.c

5
modules/access/http.c

@ -490,14 +490,11 @@ connect:
if( !vlc_object_alive (p_access) || Connect( p_access, 0 ) ) if( !vlc_object_alive (p_access) || Connect( p_access, 0 ) )
goto error; goto error;
#ifndef NDEBUG
case 0: case 0:
break; break;
default: default:
msg_Err( p_access, "You should not be here" ); assert(0);
abort();
#endif
} }
if( p_sys->i_code == 401 ) if( p_sys->i_code == 401 )

2
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; p_sys->i_late = 0;
} }
#ifndef NDEBUG #ifndef NDEBUG
msg_Dbg( p_dec, "bufsize: %d", (int)p_block->i_buffer); msg_Dbg( p_dec, "bufsize: %zu", p_block->i_buffer);
#endif #endif
if( p_sys->i_late > 10 ) if( p_sys->i_late > 10 )

24
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; p_sys->metadata_length = p_sys->i_image_offset;
#ifndef NDEBUG #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, " msg_Dbg( p_dec, "palette[%d]= T: %2x, Y: %2x, u: %2x, v: %2x", i,
"spu size: %zu, duration: %"PRIu64" (d:%zu p:%"PRIu16")", p_sys->p_palette[i][3], p_sys->p_palette[i][0],
p_sys->i_x_start, p_sys->i_y_start, p_sys->p_palette[i][1], p_sys->p_palette[i][2] );
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] );
}
} }
#endif #endif
} }

Loading…
Cancel
Save