From 7df106bc25b9b1fdb3aa3b70941cdf73ac49f879 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 17 Apr 2026 13:05:28 +0200 Subject: [PATCH] filter-chain: deactivate when Format is unset We need to deactivate the graph when the format was cleared on both the input and output. This means we got suspended and we need to clear. We can safely do this now because we take the right locks. --- src/modules/module-filter-chain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/module-filter-chain.c b/src/modules/module-filter-chain.c index c369810fe..42f222949 100644 --- a/src/modules/module-filter-chain.c +++ b/src/modules/module-filter-chain.c @@ -1537,8 +1537,7 @@ static void param_changed(struct impl *impl, uint32_t id, const struct spa_pod * spa_zero(info); if (param == NULL) { pw_log_info("module %p: filter deactivate", impl); - if (direction == SPA_DIRECTION_OUTPUT) - deactivate_graph(impl); + deactivate_graph(impl); impl->rate = 0; } else { if ((res = spa_format_audio_raw_parse(param, &info)) < 0)