diff options
author | David Robillard <d@drobilla.net> | 2013-12-25 04:10:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-25 04:10:48 +0000 |
commit | bfebcd3221c682375656a3a7a038d514ae94c148 (patch) | |
tree | 9d6462d8e74df00dbc0ea588b11ea91dbd15ce68 /src/server/BlockFactory.cpp | |
parent | 97e5f92f2395622c562e607ddc96d9304a8966e8 (diff) | |
download | ingen-bfebcd3221c682375656a3a7a038d514ae94c148.tar.gz ingen-bfebcd3221c682375656a3a7a038d514ae94c148.tar.bz2 ingen-bfebcd3221c682375656a3a7a038d514ae94c148.zip |
Implement lv2:connectionOptional (#847).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5197 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/BlockFactory.cpp')
-rw-r--r-- | src/server/BlockFactory.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/BlockFactory.cpp b/src/server/BlockFactory.cpp index 56fefd3f..c98de283 100644 --- a/src/server/BlockFactory.cpp +++ b/src/server/BlockFactory.cpp @@ -129,6 +129,9 @@ BlockFactory::load_lv2_plugins() lilv_node_free)); } + LilvNode* lv2_connectionOptional = lilv_new_uri( + _world->lilv_world(), LV2_CORE__connectionOptional); + const LilvPlugins* plugins = lilv_world_get_all_plugins(_world->lilv_world()); LILV_FOREACH(plugins, i, plugins) { const LilvPlugin* lv2_plug = lilv_plugins_get(plugins, i); @@ -168,7 +171,8 @@ BlockFactory::load_lv2_plugins() break; } } - if (!supported) { + if (!supported && + !lilv_port_has_property(lv2_plug, port, lv2_connectionOptional)) { _world->log().warn( fmt("Ignoring <%1%>; unsupported port <%2%>\n") % uri % lilv_node_as_string( @@ -186,6 +190,8 @@ BlockFactory::load_lv2_plugins() _plugins.insert(make_pair(uri, plugin)); } } + + lilv_node_free(lv2_connectionOptional); } } // namespace Server |