From 67fb8541d2c4fd55277750de876381dd9e385190 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 16 Aug 2010 08:50:43 +0200 Subject: continue flac playback after crc error --- plugins/flac/flac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3