aboutsummaryrefslogtreecommitdiff
path: root/sherlock_nk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sherlock_nk.c')
-rw-r--r--sherlock_nk.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sherlock_nk.c b/sherlock_nk.c
index 311fb41..b0d5cde 100644
--- a/sherlock_nk.c
+++ b/sherlock_nk.c
@@ -271,19 +271,15 @@ instantiate(const LV2UI_Descriptor *descriptor, const char *plugin_uri,
handle->write_function = write_function;
handle->controller = controller;
- if(!props_init(&handle->props, MAX_NPROPS, plugin_uri, handle->map, handle))
+ if(!props_init(&handle->props, descriptor->URI,
+ defs, MAX_NPROPS, &handle->state, &handle->stash,
+ handle->map, handle))
{
fprintf(stderr, "failed to allocate property structure\n");
free(handle);
return NULL;
}
- if(!props_register(&handle->props, defs, MAX_NPROPS, &handle->state, &handle->stash))
- {
- free(handle);
- return NULL;
- }
-
handle->urid.overwrite = props_map(&handle->props, defs[0].property);;
handle->urid.block = props_map(&handle->props, defs[1].property);;
handle->urid.follow = props_map(&handle->props, defs[2].property);;