From a4511921c0f3cc08978e5a5f94c542d7a0c02230 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 15 Oct 2023 10:01:42 +0200 Subject: [PATCH] Fix last minute bug [Zapper Beta (PS2)] --- src/util/layout_utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/layout_utils.c b/src/util/layout_utils.c index a5a1e41a..b36bcaae 100644 --- a/src/util/layout_utils.c +++ b/src/util/layout_utils.c @@ -108,6 +108,11 @@ static bool layered_add_internal(VGMSTREAM* vs, int layers, int layer_channels, vs->codec_data = NULL; /* moved to layer, don't hold it */ + if (sf) { + if (!vgmstream_open_stream(data->layers[i], sf, 0x00)) + goto fail; + } + data->curr_layer++; return true;