From 825e2c823c2d675ac7fc3475a5e40132f0577035 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 20 Oct 2014 23:21:58 +0200 Subject: [PATCH] add support for VST plugins without any parameters --- libs/ardour/vst_info_file.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index 4037aec91b..8088824de3 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -227,6 +227,12 @@ vstfx_load_info_block(FILE* fp, VSTInfo *info) info->wantMidi = 1; } + if ((info->numParams) == 0) { + info->ParamNames = NULL; + info->ParamLabels = NULL; + return true; + } + if ((info->ParamNames = (char **) malloc(sizeof(char*)*info->numParams)) == 0) { return false; }