diff options
author | rncbc <rncbc@rncbc.org> | 2023-12-14 09:53:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-01-20 17:29:06 -0500 |
commit | 344ef316a3307bfb27d59799e849e30154a61032 (patch) | |
tree | 70247f7e09122066a8c6c3d1ad44d8bc0c85110a /src | |
parent | e30c50d87ac7c2bc663074839ce12a9ac5796de7 (diff) | |
download | lilv-344ef316a3307bfb27d59799e849e30154a61032.tar.gz lilv-344ef316a3307bfb27d59799e849e30154a61032.tar.bz2 lilv-344ef316a3307bfb27d59799e849e30154a61032.zip |
Avoid overriding state features passed by the host
Diffstat (limited to 'src')
-rw-r--r-- | src/state.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 91f65ad..0ed5715 100644 --- a/src/state.c +++ b/src/state.c @@ -378,6 +378,15 @@ add_features(const LV2_Feature* const* features, { size_t n_features = 0; for (; features && features[n_features]; ++n_features) { + if (!strcmp(features[n_features]->URI, LV2_STATE__mapPath)) { + map = NULL; + } + if (!strcmp(features[n_features]->URI, LV2_STATE__makePath)) { + make = NULL; + } + if (!strcmp(features[n_features]->URI, LV2_STATE__freePath)) { + free = NULL; + } } const LV2_Feature** ret = |