Also fix mutual recursion across both components

When setting the state on the audio processor, it can happen that plugin
triggers a resize from the edit controller. We should also be able to
handle that situation.
This commit is contained in:
Robbert van der Helm
2021-04-30 02:10:09 +02:00
parent 949ddaf673
commit 52428c8749
2 changed files with 18 additions and 3 deletions
+3 -1
View File
@@ -144,7 +144,7 @@ class Vst3PluginBridge : PluginBridge<Vst3Sockets<std::jthread>> {
*/
Steinberg::IPtr<Vst3PluginFactoryProxyImpl> plugin_factory = nullptr;
private:
public:
/**
* All VST3 plugin objects we created from this plugin. We keep track of
* these in case the plugin does a host callback, so we can associate that
@@ -156,5 +156,7 @@ class Vst3PluginBridge : PluginBridge<Vst3Sockets<std::jthread>> {
*/
std::map<size_t, std::reference_wrapper<Vst3PluginProxyImpl>>
plugin_proxies;
private:
std::mutex plugin_proxies_mutex;
};