mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 12:23:44 +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;
|
return 1;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (!use_streamfile_per_channel) {
|
/* open streams will be closed in close_vgmstream(), hopefully called by the meta */
|
||||||
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 */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user