Browse Source

VST3: Added a missing return in the previous commit

v6.1.6
ed 4 years ago
parent
commit
a06063dfd7
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 3
- 1
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -912,15 +912,17 @@ public:
if (! MessageManager::existsAndIsCurrentThread())
#if JUCE_LINUX || JUCE_BSD
{
tresult result = kResultOk;
WaitableEvent finishedEvent;
MessageManager::callAsync ([&]
{
setComponentState (stream);
result = setComponentState (stream);
finishedEvent.signal();
});
finishedEvent.wait();
return result;
}
#else
// As an IEditController member, the host should only call this from the message thread.


Loading…
Cancel
Save