diff options
author | Robin Gareus <robin@gareus.org> | 2014-10-20 23:21:58 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-10-20 23:30:48 +0200 |
commit | 825e2c823c2d675ac7fc3475a5e40132f0577035 (patch) | |
tree | c7ee013e97d742871700151cda37e6f8ee843299 /libs/ardour/vst_info_file.cc | |
parent | a1245de1ba9b8856017ab83a31734a0a6d0010d9 (diff) |
add support for VST plugins without any parameters
Diffstat (limited to 'libs/ardour/vst_info_file.cc')
-rw-r--r-- | libs/ardour/vst_info_file.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |