13
0

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:
Robin Gareus 2014-10-20 23:30:33 +02:00
parent 825e2c823c
commit fbaae45eb1

View File

@ -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;