summaryrefslogtreecommitdiffstats
path: root/src/pluginclass.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-04 01:37:51 +0000
committerDavid Robillard <d@drobilla.net>2011-02-04 01:37:51 +0000
commit5b8c788cc4a42f9424d5cca7ca46ceb3cb427af7 (patch)
tree1c7f67590c255d27ae587ed27e026cae1d2958bf /src/pluginclass.c
parentcded478d952f14fee667e5ba9407923b17daaa65 (diff)
downloadlilv-5b8c788cc4a42f9424d5cca7ca46ceb3cb427af7.tar.gz
lilv-5b8c788cc4a42f9424d5cca7ca46ceb3cb427af7.tar.bz2
lilv-5b8c788cc4a42f9424d5cca7ca46ceb3cb427af7.zip
Drop librdf in favour of serd/sord.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2895 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/pluginclass.c')
-rw-r--r--src/pluginclass.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pluginclass.c b/src/pluginclass.c
index 9997253..9125eed 100644
--- a/src/pluginclass.c
+++ b/src/pluginclass.c
@@ -34,7 +34,9 @@ slv2_plugin_class_new(SLV2World world,
SLV2Node uri,
const char* label)
{
- assert(!parent_node || librdf_node_is_resource(parent_node));
+ if (parent_node && sord_node_get_type(parent_node) != SORD_URI) {
+ return NULL; // Not an LV2 plugin superclass (FIXME: discover properly)
+ }
SLV2PluginClass pc = (SLV2PluginClass)malloc(sizeof(struct _SLV2PluginClass));
pc->world = world;
pc->uri = slv2_value_new_from_node(world, uri);