aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-04-15 11:09:39 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-04-15 11:09:39 +0200
commit044e22754d0c5d7fdddf2dc4177a93777bed2626 (patch)
treede8db19a280a790a64a8fb12a89d893544ab2179
parentce819194056079c467e209d64e3b0c592e8f4634 (diff)
downloadsynthpod-044e22754d0c5d7fdddf2dc4177a93777bed2626.tar.xz
app: use proper bundle path in *mod_reinstantiate.
-rw-r--r--VERSION2
-rw-r--r--app/synthpod_app_mod.c12
2 files changed, 11 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 5731002d..db889147 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.5637
+0.1.5639
diff --git a/app/synthpod_app_mod.c b/app/synthpod_app_mod.c
index 814de7b1..5c331ed0 100644
--- a/app/synthpod_app_mod.c
+++ b/app/synthpod_app_mod.c
@@ -1147,8 +1147,16 @@ _sp_app_mod_reinitialize_soft(mod_t *mod)
void
_sp_app_mod_reinstantiate(sp_app_t *app, mod_t *mod)
{
- LilvState *const state = _sp_app_state_preset_create(app, mod,
- "file:///tmp/stash.preset.lv2");
+ char *path;
+
+ if(asprintf(&path, "file:///tmp/%s.preset.lv2", mod->urn_uri) == -1)
+ {
+ sp_app_log_note(app, "%s: failed to create temporary path\n", __func__);
+ return;
+ }
+
+ LilvState *const state = _sp_app_state_preset_create(app, mod, path);
+ free(path);
if(state)
{