summaryrefslogtreecommitdiff
path: root/gtk2_ardour/linux_vst_gui_support.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-11-14 21:05:36 +0100
committerRobin Gareus <robin@gareus.org>2016-11-14 21:06:18 +0100
commitf30fbcaaf968dcb5af8b762b6e3d25f6fe313f3f (patch)
tree51dfdfda0759fdc5f72e55a1a493fc0d8263dd29 /gtk2_ardour/linux_vst_gui_support.cc
parent8e3b6c9ac6b4d0e167ab116d197d32b0f8202e8b (diff)
Fix VST state-lock SNAFU (effSetChunk and process are exclusive)
Diffstat (limited to 'gtk2_ardour/linux_vst_gui_support.cc')
-rw-r--r--gtk2_ardour/linux_vst_gui_support.cc2
1 files changed, 2 insertions, 0 deletions
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);
}
}