diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2016-06-24 18:25:05 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-09 20:46:26 -0400 |
commit | 864e12f4c87b72e860c08f57808e25a4ec1548a3 (patch) | |
tree | bf4b83b357a28db0ceea74ec44872883eddb73fd | |
parent | 5b5aa5c63a78c0c96a6cec7740fcfd01325985ee (diff) | |
download | lilv-864e12f4c87b72e860c08f57808e25a4ec1548a3.tar.gz lilv-864e12f4c87b72e860c08f57808e25a4ec1548a3.tar.bz2 lilv-864e12f4c87b72e860c08f57808e25a4ec1548a3.zip |
Check lv2:binary predicate for UIs
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/plugin.c | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -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) |