summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-01 14:39:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-01 14:39:42 +0000
commitbd495f3f494234eb89b5f547fd6a570508775e79 (patch)
treeafe38b81cfd4208fe3c5277ad30fe297a1731b7a /gtk2_ardour
parentfe59d672b28d020f2c48a373a95afc55509c9257 (diff)
LV2 UI parameter changes must be handled by the GUI thread, not in the same thread that the update happened
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@8640 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/lv2_plugin_ui.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc
index c4f010a165..94ca2428b8 100644
--- a/gtk2_ardour/lv2_plugin_ui.cc
+++ b/gtk2_ardour/lv2_plugin_ui.cc
@@ -66,6 +66,8 @@ LV2PluginUI::parameter_update (uint32_t port_index, float val)
return;
}
+ ENSURE_GUI_THREAD(bind (mem_fun (*this, &LV2PluginUI::parameter_update), port_index, val));
+
const LV2UI_Descriptor* ui_desc = slv2_ui_instance_get_descriptor(_inst);
LV2UI_Handle ui_handle = slv2_ui_instance_get_handle(_inst);
if (ui_desc->port_event) {