From f30fbcaaf968dcb5af8b762b6e3d25f6fe313f3f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 14 Nov 2016 21:05:36 +0100 Subject: Fix VST state-lock SNAFU (effSetChunk and process are exclusive) --- gtk2_ardour/linux_vst_gui_support.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc index a2f637a26c..fe85ea188e 100644 --- a/gtk2_ardour/linux_vst_gui_support.cc +++ b/gtk2_ardour/linux_vst_gui_support.cc @@ -320,8 +320,10 @@ maybe_set_program (VSTState* vstfx) } if (vstfx->want_chunk == 1) { + pthread_mutex_lock (&vstfx->state_lock); vstfx->plugin->dispatcher (vstfx->plugin, 24 /* effSetChunk */, 1, vstfx->wanted_chunk_size, vstfx->wanted_chunk, 0); vstfx->want_chunk = 0; + pthread_mutex_unlock (&vstfx->state_lock); } } -- cgit v1.2.3