From 30521a822ee16b0945370543267f155b710c594b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 26 Jan 2013 21:22:47 +0000 Subject: Support state:loadDefaultState. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5007 a436a847-0d15-0410-975c-d299462d15a1 --- src/state.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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)); -- cgit v1.2.1