Commit a7f6a75d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix a few debug messages

parent e07059b0
......@@ -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 )
......
......@@ -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 )
......
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment