[SCM] calf/master: An attempt (quite risky, too) at fixing the "parameter hiccup".
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:25 UTC 2013
The following commit has been merged in the master branch:
commit 75edfb0383e14cd6cde38edfed2326d3c7a6a123
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sat Sep 25 21:42:48 2010 +0100
An attempt (quite risky, too) at fixing the "parameter hiccup".
diff --git a/src/lv2gui.cpp b/src/lv2gui.cpp
index eedcc16..a8cac50 100644
--- a/src/lv2gui.cpp
+++ b/src/lv2gui.cpp
@@ -307,6 +307,8 @@ void gui_port_event(LV2UI_Handle handle, uint32_t port, uint32_t buffer_size, ui
int param = port - proxy->plugin_metadata->get_param_port_offset();
if (param >= proxy->plugin_metadata->get_param_count())
return;
+ if (!proxy->sends[param])
+ return;
if (fabs(gui->plugin->get_param_value(param) - v) < 0.00001)
return;
{
@@ -399,6 +401,8 @@ void ext_plugin_gui::port_event_impl(uint32_t port, uint32_t buffer_size, uint32
if (port >= (uint32_t)param_offset)
{
int param = port - param_offset;
+ if (!sends[param])
+ return;
TempSendSetter _a_(sends[param], false);
if (format == 0)
{
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list