aboutsummaryrefslogtreecommitdiff
path: root/sherlock_nk.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-04-06 16:01:26 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-04-06 16:01:26 +0200
commit288b25dec6d06c2594b9a23f2619d1b81c1f659d (patch)
treee1e322a7e67e4f1a35999935975124eff6fc7ef2 /sherlock_nk.c
parent2c9f90ba6238c0cfb7fbd1c1025efebcd0818f25 (diff)
downloadsherlock.lv2-288b25dec6d06c2594b9a23f2619d1b81c1f659d.tar.xz
fixes for updated props.lv2.
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);;