From 2d8a7809f14f612fc9285f816a375dc1c2b5e128 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 7 Dec 2020 14:20:56 +0100 Subject: [PATCH] audioconvert: set port-config flags --- spa/plugins/audioconvert/merger.c | 3 ++- spa/plugins/audioconvert/splitter.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/merger.c b/spa/plugins/audioconvert/merger.c index da409ef2c..737eaf235 100644 --- a/spa/plugins/audioconvert/merger.c +++ b/spa/plugins/audioconvert/merger.c @@ -1109,7 +1109,8 @@ impl_init(const struct spa_handle_factory *factory, this->info = SPA_NODE_INFO_INIT(); this->info.max_input_ports = MAX_PORTS; this->info.max_output_ports = MAX_PORTS+1; - this->info.flags = SPA_NODE_FLAG_RT; + this->info.flags = SPA_NODE_FLAG_RT | + SPA_NODE_FLAG_IN_PORT_CONFIG; this->params[0] = SPA_PARAM_INFO(SPA_PARAM_PortConfig, SPA_PARAM_INFO_WRITE); this->info.params = this->params; this->info.n_params = 1; diff --git a/spa/plugins/audioconvert/splitter.c b/spa/plugins/audioconvert/splitter.c index 54ad6bc63..c9b8ad5e0 100644 --- a/spa/plugins/audioconvert/splitter.c +++ b/spa/plugins/audioconvert/splitter.c @@ -1031,7 +1031,8 @@ impl_init(const struct spa_handle_factory *factory, this->info = SPA_NODE_INFO_INIT(); this->info.max_input_ports = 1; this->info.max_output_ports = MAX_PORTS; - this->info.flags = SPA_NODE_FLAG_RT; + this->info.flags = SPA_NODE_FLAG_RT | + SPA_NODE_FLAG_OUT_PORT_CONFIG; this->params[0] = SPA_PARAM_INFO(SPA_PARAM_PortConfig, SPA_PARAM_INFO_WRITE); this->info.params = this->params; this->info.n_params = 1;