From 864e12f4c87b72e860c08f57808e25a4ec1548a3 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Fri, 24 Jun 2016 18:25:05 +0200 Subject: Check lv2:binary predicate for UIs --- NEWS | 3 ++- src/plugin.c | 5 ++++- 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 Thu, 17 Mar 2016 16:48:08 -0400 + -- David Robillard 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) -- cgit v1.2.1