SEGV when plugin not created.

This commit is contained in:
Robin E. R. Davies
2024-11-15 14:00:44 -05:00
parent 20cb63ad09
commit 4c0cd2acb8
+3
View File
@@ -351,6 +351,9 @@ void PiPedalModel::RemoveNotificationSubsription(std::shared_ptr<IPiPedalModelSu
void PiPedalModel::PreviewControl(int64_t clientId, int64_t pedalItemId, const std::string &symbol, float value)
{
IEffect *effect = lv2Pedalboard->GetEffect(pedalItemId);
if (!effect) {
return;
}
if (effect->IsVst3())
{
int index = lv2Pedalboard->GetControlIndex(pedalItemId, symbol);