From fd477b5f7256e85ab6718abe1b26fda4035959bf Mon Sep 17 00:00:00 2001 From: glowcoil Date: Sun, 31 Mar 2024 21:33:18 -0500 Subject: [PATCH] vst3: if a plugin has no layouts, default to an empty layout rather than panicking --- src/format/vst3/component.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format/vst3/component.rs b/src/format/vst3/component.rs index c085cc2..65c5783 100644 --- a/src/format/vst3/component.rs +++ b/src/format/vst3/component.rs @@ -87,7 +87,7 @@ impl Component

{ } let config = Config { - layout: info.layouts.first().unwrap().clone(), + layout: info.layouts.first().cloned().unwrap_or_default(), sample_rate: 0.0, max_buffer_size: 0, };