stopgap solution for VST plugins that call audioMasterWantMidi during effOpen
audioMasterWantMidi needs plugin _info, but _info is currently only available after instantiating the plugin in LXVSTPluginInfo::load(). vstfx_instantiate() -> effOpen -> [plugin] -> vst_callback(..,opcode=6,..) -> crash
This commit is contained in:
parent
825e2c823c
commit
fbaae45eb1
@ -136,7 +136,7 @@ intptr_t Session::vst_callback (
|
||||
case audioMasterWantMidi:
|
||||
SHOW_CALLBACK ("amc: audioMasterWantMidi\n");
|
||||
// <value> is a filter which is currently ignored
|
||||
if (plug) {
|
||||
if (plug && plug->get_info() != NULL) {
|
||||
plug->get_info()->n_inputs.set_midi (1);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user