ref: 4eac14e123c6af38642fef3704e0c46ed419c022
parent: 01452b2729962800a6d655daa4eea4821ab5ddd3
author: robs <robs>
date: Sat Nov 25 16:08:32 EST 2006
Cleaner close of FLAC decoder.
--- a/src/flac.c
+++ b/src/flac.c
@@ -230,13 +230,12 @@
{
Decoder * decoder = (Decoder *) format->priv;
- int result = FLAC__file_decoder_finish(decoder->flac) ? ST_SUCCESS : ST_EOF;
-
- if (result == ST_SUCCESS)
+ if (!FLAC__file_decoder_finish(decoder->flac) && decoder->eof)
{
- FLAC__file_decoder_delete(decoder->flac);
+ st_warn("FLAC decoder MD5 checksum mismatch.");
}
- return result;
+ FLAC__file_decoder_delete(decoder->flac);
+ return ST_SUCCESS;
}
--
⑨