Commit da6c00ef authored by Josh Coalson's avatar Josh Coalson
Browse files

fixed bug, file was not being closed at _finish() time

parent e1378259
......@@ -341,6 +341,12 @@ OggFLAC_API void OggFLAC__stream_encoder_finish(OggFLAC__StreamEncoder *encoder)
OggFLAC__ogg_encoder_aspect_finish(&encoder->protected_->ogg_encoder_aspect);
if(0 != encoder->private_->file) {
if(encoder->private_->file != stdout)
fclose(encoder->private_->file);
encoder->private_->file = 0;
}
set_defaults_(encoder);
encoder->protected_->state = OggFLAC__STREAM_ENCODER_UNINITIALIZED;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment