From 13a045d01c7a77fc918b7f496f5bf96ade4f6812 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Jun 2025 12:03:30 -0400 Subject: Pass "empty" LV2 features to plugin instantiate methods "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. --- src/LV2Features.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 +LV2Features::EmptyFeature::feature(World& world, Node* block) +{ + return std::make_shared(LV2_Feature{_uri, nullptr}); +} + void LV2Features::add_feature(const std::shared_ptr& feature) { -- cgit v1.2.1