Fix VST callback and crash for some plugins

Apparently "MasterUpdateDisplay" is for plugins to notify the host about
state changes -- and not notficy the plugin's own UI.

see also
http://mixbus.harrisonconsoles.com/forum/thread-6229-post-37127.html
This commit is contained in:
Robin Gareus 2018-07-30 15:41:52 +02:00
parent cd7341cd6a
commit 98769796d7

View file

@ -492,8 +492,9 @@ intptr_t Session::vst_callback (
case audioMasterUpdateDisplay:
SHOW_CALLBACK ("audioMasterUpdateDisplay");
// something has changed, update 'multi-fx' display
if (effect) {
effect->dispatcher(effect, effEditIdle, 0, 0, NULL, 0.0f);
/* TODO: consider emitting ParameterChangedExternally() for each ctrl input */
if (session) {
session->set_dirty ();
}
return 0;