diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-16 08:50:43 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-16 08:50:43 +0200 |
commit | 67fb8541d2c4fd55277750de876381dd9e385190 (patch) | |
tree | 8cdfcf4f283b3e699d9647e36c3c00bba15c4f16 | |
parent | 9fb3e15080b4192509fa891be4da71eb4901406b (diff) |
continue flac playback after crc error
-rw-r--r-- | plugins/flac/flac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c index 45d21ec8..ab35b8a0 100644 --- a/plugins/flac/flac.c +++ b/plugins/flac/flac.c @@ -146,7 +146,8 @@ static void cflac_error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data) { DB_fileinfo_t *_info = (DB_fileinfo_t *)client_data; flac_info_t *info = (flac_info_t *)_info; - if (status != FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC) { + if (status != FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC + && status != FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH) { trace ("cflac: got error callback: %s\n", FLAC__StreamDecoderErrorStatusString[status]); info->flac_critical_error = 1; } |