diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-09 20:34:09 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-09 20:34:09 +0100 |
commit | 94145b15b3ba6a738f6eca262e80be8dfd13c9aa (patch) | |
tree | 5ffb8b6779be2d2cbdefaf6facdc925d72e9a52f /plugins/flac | |
parent | c953103ff6e0189c4846d76a9370783f9c9526ba (diff) |
made flac demuxer to ignore sync errors
Diffstat (limited to 'plugins/flac')
-rw-r--r-- | plugins/flac/flac.c | 4 |
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 |