summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-24 18:25:05 +0200
committerDavid Robillard <d@drobilla.net>2016-07-09 20:46:26 -0400
commit864e12f4c87b72e860c08f57808e25a4ec1548a3 (patch)
treebf4b83b357a28db0ceea74ec44872883eddb73fd /src
parent5b5aa5c63a78c0c96a6cec7740fcfd01325985ee (diff)
downloadlilv-864e12f4c87b72e860c08f57808e25a4ec1548a3.tar.gz
lilv-864e12f4c87b72e860c08f57808e25a4ec1548a3.tar.bz2
lilv-864e12f4c87b72e860c08f57808e25a4ec1548a3.zip
Check lv2:binary predicate for UIs
Diffstat (limited to 'src')
-rw-r--r--src/plugin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 2ed3315..837fd62 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -941,7 +941,10 @@ lilv_plugin_get_uis(const LilvPlugin* p)
const SordNode* ui = sord_iter_get_node(uis, SORD_OBJECT);
LilvNode* type = lilv_plugin_get_unique(p, ui, p->world->uris.rdf_a);
- LilvNode* binary = lilv_plugin_get_unique(p, ui, ui_binary_node);
+ LilvNode* binary = lilv_plugin_get_one(p, ui, p->world->uris.lv2_binary);
+ if (!binary) {
+ binary = lilv_plugin_get_unique(p, ui, ui_binary_node);
+ }
if (sord_node_get_type(ui) != SORD_URI
|| !lilv_node_is_uri(type)