diff options
author | David Robillard <d@drobilla.net> | 2024-11-17 11:13:38 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:05:11 -0500 |
commit | 2a5f7329f6544b54a9edf6d563e55e9c71e158ff (patch) | |
tree | 7dec895824813d1b20d3cb9be20a471cf3c6ce36 /src/jalv.c | |
parent | 2d4ed5ff2a771ce1e19fa7e1ca4e9a436895c1ec (diff) | |
download | jalv-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.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |