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.
This commit is contained in:
Wim Taymans 2026-04-17 13:05:28 +02:00
parent 5f9811d085
commit 7df106bc25

View file

@ -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)