VGMStream Input: Fix subsong files dumping tracks
Fixed an issue with individual files that reference single subsongs inadvertently dumping all tracks in the referenced bank to the playlist, instead of only adding the one bookmark or txtp file. Now it matches the behavior of foobar2000. Signed-off-by: Christopher Snowhill <kode54@gmail.com>CQTexperiment
parent
d1c6950ec6
commit
94f915b892
|
@ -53,6 +53,11 @@
|
||||||
return @[];
|
return @[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(stream->stream_index > 0) {
|
||||||
|
close_vgmstream(stream);
|
||||||
|
return @[];
|
||||||
|
}
|
||||||
|
|
||||||
VGMInfoCache *sharedMyCache = [VGMInfoCache sharedCache];
|
VGMInfoCache *sharedMyCache = [VGMInfoCache sharedCache];
|
||||||
|
|
||||||
NSMutableArray *tracks = [NSMutableArray array];
|
NSMutableArray *tracks = [NSMutableArray array];
|
||||||
|
|
|
@ -336,9 +336,6 @@ VGMSTREAM* init_vgmstream_from_cogfile(const char* path, int subsong) {
|
||||||
STREAMFILE* sf;
|
STREAMFILE* sf;
|
||||||
VGMSTREAM* vgm = NULL;
|
VGMSTREAM* vgm = NULL;
|
||||||
|
|
||||||
if(!subsong)
|
|
||||||
subsong = 1;
|
|
||||||
|
|
||||||
sf = open_cog_streamfile(path);
|
sf = open_cog_streamfile(path);
|
||||||
|
|
||||||
if(sf) {
|
if(sf) {
|
||||||
|
|
Loading…
Reference in New Issue