summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/plugin.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 023f9b9..1158fe6 100644
--- a/NEWS
+++ b/NEWS
@@ -6,12 +6,13 @@ lilv (0.22.1) unstable;
* Replace bundles if bundle with newer plugin version is loaded
(based on patch from Robin Gareus)
* Fix loading dyn-manifest from bundles with spaces in their path
+ * Check lv2:binary predicate for UIs
* Add LILV_URI_ATOM_PORT and LILV_URI_CV_PORT defines
* Fix Python bindings
* Fix documentation installation
* Fix outdated comment references to lilv_uri_to_path()
- -- David Robillard <d@drobilla.net> Thu, 17 Mar 2016 16:48:08 -0400
+ -- David Robillard <d@drobilla.net> Sat, 09 Jul 2016 20:45:46 -0400
lilv (0.22.0) stable;
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)