mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 15:54:05 +01:00
Remove unneeded/buggy stream-closing code in vgmstream_open_stream
This commit is contained in:
parent
35a3d44c89
commit
dfa9edea76
@ -2308,14 +2308,6 @@ int vgmstream_open_stream(VGMSTREAM * vgmstream, STREAMFILE *streamFile, off_t s
|
||||
return 1;
|
||||
|
||||
fail:
|
||||
if (!use_streamfile_per_channel) {
|
||||
streamFile->close(file); /* only one file was ever open */
|
||||
} else {
|
||||
for (ch=0; ch < vgmstream->channels; ch++) {
|
||||
if (vgmstream->ch[ch].streamfile)
|
||||
streamFile->close(vgmstream->ch[ch].streamfile); /* close all open files */
|
||||
}
|
||||
}
|
||||
|
||||
/* open streams will be closed in close_vgmstream(), hopefully called by the meta */
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user