From b065899859f79f073c6c09d11992969acccea806 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 28 Jun 2023 16:52:11 +0200 Subject: [PATCH] filter-chain: only reset rate when suspended Otherwire we can continue with the graph configuration if the rates still match. --- src/modules/module-filter-chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-filter-chain.c b/src/modules/module-filter-chain.c index 5b9971e18..26b0cd46a 100644 --- a/src/modules/module-filter-chain.c +++ b/src/modules/module-filter-chain.c @@ -1180,12 +1180,12 @@ static void param_changed(void *data, uint32_t id, const struct spa_pod *param) spa_zero(info); if (param == NULL) { graph_cleanup(graph); + impl->rate = 0; } else { if ((res = spa_format_audio_raw_parse(param, &info)) < 0) goto error; } impl->info = info; - impl->rate = 0; break; } case SPA_PARAM_Props: