Mercurial > audlegacy-plugins
diff src/flacng/seekable_stream_callbacks.c @ 1041:7d7f77129c75 trunk
[svn]
- Do not complain about errors in the stream while testing a file
author | ertzing |
---|---|
date | Wed, 16 May 2007 13:00:14 -0700 |
parents | 1f78881a5f3c |
children | 875baf383f0c |
line wrap: on
line diff
--- a/src/flacng/seekable_stream_callbacks.c Wed May 16 04:10:36 2007 -0700 +++ b/src/flacng/seekable_stream_callbacks.c Wed May 16 13:00:14 2007 -0700 @@ -231,9 +231,17 @@ void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data) { + callback_info* info = (callback_info*) client_data; + _ENTER; - _ERROR("FLAC decoder error callback was called: %d", status); + _DEBUG("Using callback_info %s", info->name); + + if (!info->testing) { + _ERROR("FLAC decoder error callback was called: %d", status); + } else { + _DEBUG("FLAC decoder error callback was called: %d", status); + } _LEAVE;