Use the provided plugin instance

Some plugins call `audioMasterIOChanged` during their initialization
when this is still a null pointer.
This commit is contained in:
Robbert van der Helm
2020-03-23 23:06:12 +01:00
parent dc08d8032d
commit 5552fc3009
+2 -2
View File
@@ -350,13 +350,13 @@ class HostCallbackDataConverter : DefaultDataConverter {
VstTimeInfo& time_info;
};
intptr_t PluginBridge::host_callback(AEffect* /*plugin*/,
intptr_t PluginBridge::host_callback(AEffect* effect,
int opcode,
int index,
intptr_t value,
void* data,
float option) {
HostCallbackDataConverter converter(plugin, editor, time_info);
HostCallbackDataConverter converter(effect, editor, time_info);
return send_event(vst_host_callback, host_callback_semaphore, converter,
std::nullopt, opcode, index, value, data, option);
}