diff options
author | David Robillard <d@drobilla.net> | 2012-03-21 01:45:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-21 01:45:50 +0000 |
commit | 4c3e08dfcf69450388ed8b612a4f01b182bc5908 (patch) | |
tree | bfb9d61d819ccd706e99f8e80dc6bce4c6013ef7 /src/world.c | |
parent | 317b79213dcf2989cb73cc54444293a3b3442369 (diff) | |
download | lilv-4c3e08dfcf69450388ed8b612a4f01b182bc5908.tar.gz lilv-4c3e08dfcf69450388ed8b612a4f01b182bc5908.tar.bz2 lilv-4c3e08dfcf69450388ed8b612a4f01b182bc5908.zip |
Fix redundant parsing of resources (e.g. preset files).
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4094 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c index 7eea802..5ec39e2 100644 --- a/src/world.c +++ b/src/world.c @@ -775,7 +775,7 @@ lilv_world_load_resource(LilvWorld* world, const uint8_t* str = sord_node_get_string(file); LilvNode* file_node = lilv_node_new_from_node(world, file); ZixTreeIter* iter; - if (zix_tree_find((ZixTree*)world->loaded_files, file, &iter)) { + if (zix_tree_find((ZixTree*)world->loaded_files, file_node, &iter)) { if (sord_node_get_type(file) == SORD_URI) { const SerdNode* base = sord_node_to_serd_node(file); SerdEnv* env = serd_env_new(base); |