From 61f1aea01f993ff7ea236e3faa238ebf5f1b88b7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 13 Feb 2024 16:22:33 +0100 Subject: [PATCH] audioconvert: remove some construct time properties Remove some verbose and construct time properties. --- spa/plugins/audioconvert/audioadapter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 057dd0f74..59990c1f4 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -302,6 +302,13 @@ static void emit_node_info(struct impl *this, bool full) if (full) this->info.change_mask = this->info_all; if (this->info.change_mask) { + struct spa_dict_item items[2]; + uint32_t n_items = 0; + + items[n_items++] = SPA_DICT_ITEM_INIT("adapter.auto-port-config", NULL); + items[n_items++] = SPA_DICT_ITEM_INIT("audio.adapt.follower", NULL); + this->info.props = &SPA_DICT_INIT(items, n_items); + if (this->info.change_mask & SPA_NODE_CHANGE_MASK_PARAMS) { for (i = 0; i < this->info.n_params; i++) { if (this->params[i].user > 0) { @@ -1904,6 +1911,7 @@ impl_init(const struct spa_handle_factory *factory, this->target = this->convert; this->info_all = SPA_NODE_CHANGE_MASK_FLAGS | + SPA_NODE_CHANGE_MASK_PROPS | SPA_NODE_CHANGE_MASK_PARAMS; this->info = SPA_NODE_INFO_INIT(); this->info.flags = SPA_NODE_FLAG_RT |