From 5552fc3009713def793e6633b1b8fd3d9035ea3d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 23 Mar 2020 23:06:12 +0100 Subject: [PATCH] Use the provided plugin instance Some plugins call `audioMasterIOChanged` during their initialization when this is still a null pointer. --- src/wine-host/plugin-bridge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wine-host/plugin-bridge.cpp b/src/wine-host/plugin-bridge.cpp index ace3f3ab..e7941d49 100644 --- a/src/wine-host/plugin-bridge.cpp +++ b/src/wine-host/plugin-bridge.cpp @@ -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); }