Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
da6c00ef
Commit
da6c00ef
authored
Sep 16, 2006
by
Josh Coalson
Browse files
fixed bug, file was not being closed at _finish() time
parent
e1378259
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libOggFLAC/stream_encoder.c
View file @
da6c00ef
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment