summaryrefslogtreecommitdiff
path: root/plugins/flac/flac.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/flac/flac.c')
-rw-r--r--plugins/flac/flac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c
index c13dc7b3..9359daae 100644
--- a/plugins/flac/flac.c
+++ b/plugins/flac/flac.c
@@ -139,7 +139,9 @@ static int cflac_init_stop_decoding;
static void
cflac_init_error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data) {
fprintf(stderr, "cflac: got error callback: %s\n", FLAC__StreamDecoderErrorStatusString[status]);
- cflac_init_stop_decoding = 1;
+ if (status != FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC) {
+ cflac_init_stop_decoding = 1;
+ }
}
static int