mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix bug in file closing logic in _finish()
This commit is contained in:
@@ -581,8 +581,9 @@ FLAC_API FLAC__bool FLAC__stream_decoder_finish(FLAC__StreamDecoder *decoder)
|
||||
decoder->private_->output_capacity = 0;
|
||||
decoder->private_->output_channels = 0;
|
||||
|
||||
if(0 != decoder->private_->file && decoder->private_->file != stdin) {
|
||||
fclose(decoder->private_->file);
|
||||
if(0 != decoder->private_->file) {
|
||||
if(decoder->private_->file != stdin)
|
||||
fclose(decoder->private_->file);
|
||||
decoder->private_->file = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user