summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-07 05:34:19 +0000
committerDavid Robillard <d@drobilla.net>2011-03-07 05:34:19 +0000
commita7d7fae434dc32e6787dfe54d1c30e0bccc660bd (patch)
tree74c46b462b3541e05d58b0219531a6aef1bd946a /src/client
parent3dddff18969b94438bc44b8d3d3c769b9ffc0a1b (diff)
downloadingen-a7d7fae434dc32e6787dfe54d1c30e0bccc660bd.tar.gz
ingen-a7d7fae434dc32e6787dfe54d1c30e0bccc660bd.tar.bz2
ingen-a7d7fae434dc32e6787dfe54d1c30e0bccc660bd.zip
Apply LV2 UI MIDI event fix from Lars Luthman (ticket #651) with minor changes.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3048 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r--src/client/PluginUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp
index 6ae2623c..8233506c 100644
--- a/src/client/PluginUI.cpp
+++ b/src/client/PluginUI.cpp
@@ -71,7 +71,9 @@ lv2_ui_write(LV2UI_Controller controller,
lv2_event_begin(&iter, buf);
while (lv2_event_is_valid(&iter)) {
LV2_Event* const ev = lv2_event_get(&iter, &data);
- if (ev->type == uris.midi_MidiEvent.id) {
+ std::pair<bool, uint16_t> midi_id =
+ uris.global_to_event(uris.midi_MidiEvent.id);
+ if (midi_id.first && ev->type == midi_id.second) {
// FIXME: bundle multiple events by writing an entire buffer here
ui->world()->engine()->set_property(
port->path(),