diff options
author | David Robillard <d@drobilla.net> | 2013-01-26 21:22:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-26 21:22:47 +0000 |
commit | 30521a822ee16b0945370543267f155b710c594b (patch) | |
tree | fbd62c08b71d4fee4b3f3ab5276248cb078394bf /src/state.c | |
parent | a0ce6e18af34a8597e6fe0bc39d1f31737e7ef01 (diff) | |
download | lilv-30521a822ee16b0945370543267f155b710c594b.tar.gz lilv-30521a822ee16b0945370543267f155b710c594b.tar.bz2 lilv-30521a822ee16b0945370543267f155b710c594b.zip |
Support state:loadDefaultState.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5007 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 5b7b64b..081aaf0 100644 --- a/src/state.c +++ b/src/state.c @@ -494,6 +494,9 @@ new_state_from_model(LilvWorld* world, const SordNode* label = get1(model, port, world->uris.rdfs_label); const SordNode* symbol = get1(model, port, world->uris.lv2_symbol); const SordNode* value = get1(model, port, world->uris.pset_value); + if (!value) { + value = get1(model, port, world->uris.lv2_default); + } if (!symbol) { LILV_ERRORF("State `%s' port missing symbol.\n", sord_node_get_string(node)); |