fix VST shell-scanner (double free), support for VST2.4

This commit is contained in:
Robin Gareus
2014-02-24 02:02:29 +01:00
parent 2e0c98c489
commit 8cca67e9c9
2 changed files with 2 additions and 12 deletions

View File

@@ -102,7 +102,7 @@ intptr_t Session::vst_callback (
case audioMasterVersion:
SHOW_CALLBACK ("amc: audioMasterVersion\n");
// vst version, currently 2 (0 for older)
return 2; // XXX 2400
return 2400;
case audioMasterCurrentId:
SHOW_CALLBACK ("amc: audioMasterCurrentId\n");

View File

@@ -520,16 +520,6 @@ vstfx_info_from_plugin (const char *dllpath, VSTState* vstfx, vector<VSTInfo *>
}
}
}
} else {
switch(type) {
#ifdef WINDOWS_VST_SUPPORT
case 1: fst_close(vstfx); break;
#endif
#ifdef LXVST_SUPPORT
case 2: vstfx_close (vstfx); break;
#endif
default: assert(0); break;
}
}
#endif
}
@@ -549,7 +539,7 @@ simple_master_callback (AEffect *, int32_t opcode, int32_t, intptr_t, void *ptr,
const int vstfx_can_do_string_count = 2;
if (opcode == audioMasterVersion) {
return 2;
return 2400;
}
else if (opcode == audioMasterCanDo) {
for (int i = 0; i < vstfx_can_do_string_count; i++) {