summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-06-09 00:19:28 +0000
committerDavid Robillard <d@drobilla.net>2013-06-09 00:19:28 +0000
commit97cbccb98c6f0b0ce4d79bb67b8c9c698df4f873 (patch)
treec9d4ef0d7e7c9b5a005e0ce8d41e90a69a9bff6b
parentd8786445f29d49ff3b43d942c2f98f937416a837 (diff)
downloadingen-97cbccb98c6f0b0ce4d79bb67b8c9c698df4f873.tar.gz
ingen-97cbccb98c6f0b0ce4d79bb67b8c9c698df4f873.tar.bz2
ingen-97cbccb98c6f0b0ce4d79bb67b8c9c698df4f873.zip
Fix crash when twiddling controls in custom LV2 GUIs.
This should never happen, it seems that the port value atom is garbage, but it fixes the crash, so... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5132 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/client/PluginUI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp
index b9212174..b24332d6 100644
--- a/src/client/PluginUI.cpp
+++ b/src/client/PluginUI.cpp
@@ -60,7 +60,8 @@ lv2_ui_write(SuilController controller,
return;
}
const float value = *(const float*)buffer;
- if (value == port->value().get<float>()) {
+ if (port->value().type() == uris.atom_Float &&
+ value == port->value().get<float>()) {
return; // Ignore feedback
}