Commit 94ad23ae authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* make the flac decoder errors less annoying. some are warns, some are err's.

parent e98a1ade
...@@ -650,8 +650,8 @@ static void DecoderErrorCallback( const FLAC__StreamDecoder *decoder, ...@@ -650,8 +650,8 @@ static void DecoderErrorCallback( const FLAC__StreamDecoder *decoder,
switch( status ) switch( status )
{ {
case FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC: case FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC:
msg_Err( p_dec, "an error in the stream caused the decoder to " msg_Warn( p_dec, "an error in the stream caused the decoder to "
"lose synchronization." ); "loose synchronization." );
break; break;
case FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER: case FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER:
msg_Err( p_dec, "the decoder encountered a corrupted frame header." ); msg_Err( p_dec, "the decoder encountered a corrupted frame header." );
...@@ -705,28 +705,28 @@ static void decoder_state_error( decoder_t *p_dec, ...@@ -705,28 +705,28 @@ static void decoder_state_error( decoder_t *p_dec,
switch ( state ) switch ( state )
{ {
case FLAC__STREAM_DECODER_SEARCH_FOR_METADATA: case FLAC__STREAM_DECODER_SEARCH_FOR_METADATA:
msg_Err( p_dec, "the decoder is ready to search for metadata." ); msg_Dbg( p_dec, "the decoder is ready to search for metadata." );
break; break;
case FLAC__STREAM_DECODER_READ_METADATA: case FLAC__STREAM_DECODER_READ_METADATA:
msg_Err( p_dec, "the decoder is ready to or is in the process of " msg_Dbg( p_dec, "the decoder is ready to or is in the process of "
"reading metadata." ); "reading metadata." );
break; break;
case FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC: case FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC:
msg_Err( p_dec, "the decoder is ready to or is in the process of " msg_Dbg( p_dec, "the decoder is ready to or is in the process of "
"searching for the frame sync code." ); "searching for the frame sync code." );
break; break;
case FLAC__STREAM_DECODER_READ_FRAME: case FLAC__STREAM_DECODER_READ_FRAME:
msg_Err( p_dec, "the decoder is ready to or is in the process of " msg_Dbg( p_dec, "the decoder is ready to or is in the process of "
"reading a frame." ); "reading a frame." );
break; break;
case FLAC__STREAM_DECODER_END_OF_STREAM: case FLAC__STREAM_DECODER_END_OF_STREAM:
msg_Err( p_dec, "the decoder has reached the end of the stream." ); msg_Dbg( p_dec, "the decoder has reached the end of the stream." );
break; break;
case FLAC__STREAM_DECODER_ABORTED: case FLAC__STREAM_DECODER_ABORTED:
msg_Err( p_dec, "the decoder was aborted by the read callback." ); msg_Warn( p_dec, "the decoder was aborted by the read callback." );
break; break;
case FLAC__STREAM_DECODER_UNPARSEABLE_STREAM: case FLAC__STREAM_DECODER_UNPARSEABLE_STREAM:
msg_Err( p_dec, "the decoder encountered reserved fields in use " msg_Warn( p_dec, "the decoder encountered reserved fields in use "
"in the stream." ); "in the stream." );
break; break;
case FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR: case FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR:
...@@ -745,7 +745,7 @@ static void decoder_state_error( decoder_t *p_dec, ...@@ -745,7 +745,7 @@ static void decoder_state_error( decoder_t *p_dec,
msg_Err( p_dec, "decoder in uninitialized state." ); msg_Err( p_dec, "decoder in uninitialized state." );
break; break;
default: default:
msg_Err(p_dec, "unknown error" ); msg_Warn(p_dec, "unknown error" );
} }
} }
#endif #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