From 30ba62e47c4fb8f8e95c6161286b702e6fdf89dc Mon Sep 17 00:00:00 2001 From: Niklas Carlsson Date: Wed, 6 Aug 2025 12:05:35 +0200 Subject: [PATCH] filter-graph: set NULL data support in LV2 In LV2, a port supports NULL data if the connectionOptional property is set. --- spa/plugins/filter-graph/plugin_lv2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/filter-graph/plugin_lv2.c b/spa/plugins/filter-graph/plugin_lv2.c index 3928b236c..33bf38470 100644 --- a/spa/plugins/filter-graph/plugin_lv2.c +++ b/spa/plugins/filter-graph/plugin_lv2.c @@ -550,6 +550,8 @@ static const struct spa_fga_descriptor *lv2_plugin_make_desc(void *plugin, const fp->flags |= SPA_FGA_PORT_CONTROL; if (lilv_port_is_a(p->p, port, c->lv2_AudioPort)) fp->flags |= SPA_FGA_PORT_AUDIO; + if (lilv_port_has_property(p->p, port, c->lv2_Optional)) + fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA; fp->hint = 0; if (latent && latency_index == i)