From 344ef316a3307bfb27d59799e849e30154a61032 Mon Sep 17 00:00:00 2001 From: rncbc Date: Thu, 14 Dec 2023 09:53:40 +0000 Subject: Avoid overriding state features passed by the host --- src/state.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 = -- cgit v1.2.1