aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-17 11:13:38 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:05:11 -0500
commit2a5f7329f6544b54a9edf6d563e55e9c71e158ff (patch)
tree7dec895824813d1b20d3cb9be20a471cf3c6ce36 /src/jalv.c
parent2d4ed5ff2a771ce1e19fa7e1ca4e9a436895c1ec (diff)
downloadjalv-2a5f7329f6544b54a9edf6d563e55e9c71e158ff.tar.gz
jalv-2a5f7329f6544b54a9edf6d563e55e9c71e158ff.tar.bz2
jalv-2a5f7329f6544b54a9edf6d563e55e9c71e158ff.zip
Add state_threadSafeRestore to nodes cache
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 714c984..bccec38 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -1024,12 +1024,8 @@ jalv_open(Jalv* const jalv, int* argc, char*** argv)
}
// Check for thread-safe state restore() method
- LilvNode* state_threadSafeRestore =
- lilv_new_uri(jalv->world, LV2_STATE__threadSafeRestore);
- if (lilv_plugin_has_feature(jalv->plugin, state_threadSafeRestore)) {
- jalv->safe_restore = true;
- }
- lilv_node_free(state_threadSafeRestore);
+ jalv->safe_restore =
+ lilv_plugin_has_feature(jalv->plugin, jalv->nodes.state_threadSafeRestore);
if (!state) {
// Not restoring state, load the plugin as a preset to get default