From c3e668049b28966fcb09f7a32acb643e390d580f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 12 Nov 2024 16:11:51 +0100 Subject: [PATCH] filter-chain: pass quantum-limit to plugins --- src/modules/module-filter-chain/filter-graph.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/module-filter-chain/filter-graph.c b/src/modules/module-filter-chain/filter-graph.c index 54c6455a9..40930fa25 100644 --- a/src/modules/module-filter-chain/filter-graph.c +++ b/src/modules/module-filter-chain/filter-graph.c @@ -854,7 +854,12 @@ static struct plugin *plugin_load(struct impl *impl, const char *type, const cha spa_log_error(impl->log, "can't load plugin type '%s': %m", type); pl = NULL; } else { - pl = plugin_func(impl->support, impl->n_support, path, NULL); + char quantum[64]; + snprintf(quantum, sizeof(quantum), "%d", impl->quantum_limit); + pl = plugin_func(impl->support, impl->n_support, path, + &SPA_DICT_ITEMS( + SPA_DICT_ITEM("clock.quantum-limit", quantum) + )); } if (pl == NULL) goto exit;