diff options
author | David Robillard <d@drobilla.net> | 2025-06-06 12:03:30 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-06-06 12:03:30 -0400 |
commit | 13a045d01c7a77fc918b7f496f5bf96ade4f6812 (patch) | |
tree | 0df9319a44c69d73663fdc427720e2660fdbc338 /src/LV2Features.cpp | |
parent | 6e02a3e2e60ffdcebdb2a244dd11e500e108c6bb (diff) | |
download | ingen-13a045d01c7a77fc918b7f496f5bf96ade4f6812.tar.gz ingen-13a045d01c7a77fc918b7f496f5bf96ade4f6812.tar.bz2 ingen-13a045d01c7a77fc918b7f496f5bf96ade4f6812.zip |
"Empty" features (features with no data) previously weren't passed to the
plugin but this breaks plugins that are checking for required host
feature. Specifically, this fixes JUCE plugins that require
bufsz:boundedBlockLength.
Diffstat (limited to 'src/LV2Features.cpp')
-rw-r--r-- | src/LV2Features.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/LV2Features.cpp b/src/LV2Features.cpp index c33ba4c4..73cc9382 100644 --- a/src/LV2Features.cpp +++ b/src/LV2Features.cpp @@ -31,6 +31,12 @@ LV2Features::Feature::free_feature(LV2_Feature* feature) free(feature); } +std::shared_ptr<LV2_Feature> +LV2Features::EmptyFeature::feature(World& world, Node* block) +{ + return std::make_shared<LV2_Feature>(LV2_Feature{_uri, nullptr}); +} + void LV2Features::add_feature(const std::shared_ptr<Feature>& feature) { |