Skip to content

Commit

Permalink
vst3: if a plugin has no layouts, default to an empty layout rather t…
Browse files Browse the repository at this point in the history
…han panicking
  • Loading branch information
micahrj committed Apr 1, 2024
1 parent 12b5f17 commit fd477b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/format/vst3/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<P: Plugin> Component<P> {
}

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,
};
Expand Down

0 comments on commit fd477b5

Please sign in to comment.