Commit 1f81f0a3 authored by David Flynn's avatar David Flynn Committed by Jean-Baptiste Kempf

codec/schroedinger: remove excessive debug tracing

Signed-off-by: default avatarDavid Flynn <davidf@rd.bbc.co.uk>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7c229f88
...@@ -79,8 +79,6 @@ struct decoder_sys_t ...@@ -79,8 +79,6 @@ struct decoder_sys_t
SchroVideoFormat *p_format; SchroVideoFormat *p_format;
}; };
//#define TRACE
/***************************************************************************** /*****************************************************************************
* OpenDecoder: probe the decoder and return score * OpenDecoder: probe the decoder and return score
*****************************************************************************/ *****************************************************************************/
...@@ -302,9 +300,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -302,9 +300,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
/* reset the decoder when seeking as the decode in progress is invalid */ /* reset the decoder when seeking as the decode in progress is invalid */
/* discard the block as it is just a null magic block */ /* discard the block as it is just a null magic block */
if( p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) ) { if( p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) ) {
#ifdef TRACE
msg_Dbg( p_dec, "SCHRO_DECODER_RESET" );
#endif
schro_decoder_reset( p_sys->p_schro ); schro_decoder_reset( p_sys->p_schro );
p_sys->i_lastpts = -1; p_sys->i_lastpts = -1;
...@@ -345,15 +340,9 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -345,15 +340,9 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
break; break;
case SCHRO_DECODER_NEED_BITS: case SCHRO_DECODER_NEED_BITS:
#ifdef TRACE
msg_Dbg( p_dec, "SCHRO_DECODER_NEED_BITS" );
#endif
return NULL; return NULL;
case SCHRO_DECODER_NEED_FRAME: case SCHRO_DECODER_NEED_FRAME:
#ifdef TRACE
msg_Dbg( p_dec, "SCHRO_DECODER_NEED_FRAME" );
#endif
p_schroframe = CreateSchroFrameFromPic( p_dec ); p_schroframe = CreateSchroFrameFromPic( p_dec );
if( !p_schroframe ) if( !p_schroframe )
...@@ -401,23 +390,14 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -401,23 +390,14 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_sys->i_lastpts = p_pic->date; p_sys->i_lastpts = p_pic->date;
schro_frame_unref( p_schroframe ); schro_frame_unref( p_schroframe );
#ifdef TRACE
msg_Dbg( p_dec, "SCHRO_DECODER_OK num=%u date=%"PRId64,
u_pnum, p_pic->date);
#endif
return p_pic; return p_pic;
} }
case SCHRO_DECODER_EOS: case SCHRO_DECODER_EOS:
/* NB, the new api will not emit _EOS, it handles the reset internally */ /* NB, the new api will not emit _EOS, it handles the reset internally */
#ifdef TRACE
msg_Dbg( p_dec, "SCHRO_DECODER_EOS");
#endif
break; break;
case SCHRO_DECODER_ERROR: case SCHRO_DECODER_ERROR:
#ifdef TRACE msg_Err( p_dec, "SCHRO_DECODER_ERROR");
msg_Dbg( p_dec, "SCHRO_DECODER_ERROR");
#endif
return NULL; return NULL;
} }
} }
......
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