summaryrefslogtreecommitdiff
path: root/plugins/flac
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-09 20:34:09 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-09 20:34:09 +0100
commit94145b15b3ba6a738f6eca262e80be8dfd13c9aa (patch)
tree5ffb8b6779be2d2cbdefaf6facdc925d72e9a52f /plugins/flac
parentc953103ff6e0189c4846d76a9370783f9c9526ba (diff)
made flac demuxer to ignore sync errors
Diffstat (limited to 'plugins/flac')
-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