mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 20:40:11 +02:00
Flush the bus info cache in more places
The current approach 'works', but better err on the safe side. Once this caching layer is no longer necessary we should just remove it.
This commit is contained in:
@@ -85,9 +85,15 @@ Vst3PluginBridge::Vst3PluginBridge()
|
||||
},
|
||||
[&](const YaComponentHandler::RestartComponent& request)
|
||||
-> YaComponentHandler::RestartComponent::Response {
|
||||
return plugin_proxies.at(request.owner_instance_id)
|
||||
.get()
|
||||
.component_handler->restartComponent(request.flags);
|
||||
Vst3PluginProxyImpl& proxy_object =
|
||||
plugin_proxies.at(request.owner_instance_id).get();
|
||||
|
||||
// To err on the safe side, we'll just always clear out bus
|
||||
// info cache whenever a plugin requests a restart
|
||||
proxy_object.clear_bus_cache();
|
||||
|
||||
return proxy_object.component_handler->restartComponent(
|
||||
request.flags);
|
||||
},
|
||||
[&](const YaComponentHandler2::SetDirty& request)
|
||||
-> YaComponentHandler2::SetDirty::Response {
|
||||
|
||||
Reference in New Issue
Block a user