From 97cbccb98c6f0b0ce4d79bb67b8c9c698df4f873 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Jun 2013 00:19:28 +0000 Subject: 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 --- src/client/PluginUI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/PluginUI.cpp') 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()) { + if (port->value().type() == uris.atom_Float && + value == port->value().get()) { return; // Ignore feedback } -- cgit v1.2.1