From 8f735d4b066d3252639c301f6310ccc69712b350 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 18 Apr 2009 17:43:30 +0200 Subject: [PATCH] ZynAddSubFX: do not lock up after rendering project Do not lock up after rendering project by calling waitForInitDone() on our own (instead of in RemotePlugin constructor) with busy waiting disabled. (cherry picked from commit 75382de9761e14ef3df5eddae390692557d39d3c) --- plugins/zynaddsubfx/zynaddsubfx.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/zynaddsubfx/zynaddsubfx.cpp b/plugins/zynaddsubfx/zynaddsubfx.cpp index f128cccbb..1b33b41f6 100644 --- a/plugins/zynaddsubfx/zynaddsubfx.cpp +++ b/plugins/zynaddsubfx/zynaddsubfx.cpp @@ -222,7 +222,9 @@ void zynAddSubFx::updateSampleRate( void ) void zynAddSubFx::initRemotePlugin( void ) { delete m_plugin; - m_plugin = new remotePlugin( "remote_zynaddsubfx" ); + m_plugin = new remotePlugin( "remote_zynaddsubfx", false ); + m_plugin->lock(); + m_plugin->waitForInitDone( false ); m_plugin->sendMessage( remotePlugin::message( IdZasfPresetDirectory ). @@ -230,6 +232,7 @@ void zynAddSubFx::initRemotePlugin( void ) ( configManager::inst()->factoryPresetsDir() + QDir::separator() + "ZynAddSubFX" ). toStdString() ) ); + m_plugin->unlock(); }