diff options
author | David Robillard <d@drobilla.net> | 2007-05-09 01:34:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-05-09 01:34:35 +0000 |
commit | 3433ad241b069037d780c528ff462b3ce7c2c3be (patch) | |
tree | cb7caceaf721cbc7d658a814838dcd924356fb02 /src/plugin.c | |
parent | 9b0b42f31a6e03a5caed14cd73802729c31b6b6e (diff) | |
download | lilv-3433ad241b069037d780c528ff462b3ce7c2c3be.tar.gz lilv-3433ad241b069037d780c528ff462b3ce7c2c3be.tar.bz2 lilv-3433ad241b069037d780c528ff462b3ce7c2c3be.zip |
Ontology install path fixes.
0.0.1 versioning stuff.
Removed GNU 'standard' files I don't maintain anyway and make automake shutup about it.
git-svn-id: http://svn.drobilla.net/lad/slv2@521 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/plugin.c b/src/plugin.c index 391ed11..1552c55 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -433,20 +433,15 @@ bool slv2_plugin_has_latency(SLV2Plugin p) { const char* const query = - "ASK WHERE {\n" - " <> lv2:port ?port .\n" + "SELECT DISTINCT ?index WHERE {\n" + " <> lv2:port ?port .\n" " ?port lv2:portHint lv2:reportsLatency ;\n" " lv2:index ?index .\n" "}\n"; - librdf_query_results* results = slv2_plugin_query(p, query); - assert(librdf_query_results_is_boolean(results)); - - bool ret = (librdf_query_results_get_boolean(results) > 0); + SLV2Values result = slv2_plugin_simple_query(p, query, 0); - librdf_free_query_results(results); - - return ret; + return (slv2_values_size(result) > 0); } |