aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-03-19 22:32:02 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2018-03-19 22:32:02 +0100
commitced82463893850e4ace9da43424b033e843f2433 (patch)
tree7bb120652c52e13434899259617af8d4b64f1756
parent8f504cedbee2b73753d8f177b990faec3251338c (diff)
downloadsynthpod-ced82463893850e4ace9da43424b033e843f2433.zip
synthpod-ced82463893850e4ace9da43424b033e843f2433.tar.gz
synthpod-ced82463893850e4ace9da43424b033e843f2433.tar.bz2
synthpod-ced82463893850e4ace9da43424b033e843f2433.tar.xz
app: activate plugins before loading state.
-rw-r--r--VERSION2
-rw-r--r--app/synthpod_app_mod.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/VERSION b/VERSION
index da04da0..ab7483c 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.5573
+0.1.5575
diff --git a/app/synthpod_app_mod.c b/app/synthpod_app_mod.c
index ed01bd7..deb4912 100644
--- a/app/synthpod_app_mod.c
+++ b/app/synthpod_app_mod.c
@@ -978,13 +978,13 @@ _sp_app_mod_add(sp_app_t *app, const char *uri, LV2_URID urn)
pthread_create(&mod_worker->thread, &attr, _mod_worker_thread, mod);
}
+ // activate
+ lilv_instance_activate(mod->inst);
+
// load default state
if(load_default_state && _sp_app_state_preset_load(app, mod, uri, false))
sp_app_log_error(app, "%s: default state loading failed\n", __func__);
- // activate
- lilv_instance_activate(mod->inst);
-
// initialize profiling reference time
mod->prof.sum = 0;
@@ -1153,10 +1153,10 @@ _sp_app_mod_reinstantiate(sp_app_t *app, mod_t *mod)
{
_sp_app_mod_reinitialize_soft(mod);
- _sp_app_state_preset_restore(app, mod, state, false);
-
lilv_instance_activate(mod->inst);
+ _sp_app_state_preset_restore(app, mod, state, false);
+
lilv_state_free(state);
}
}