filter-chain: only reset rate when suspended

Otherwire we can continue with the graph configuration if the rates
still match.
This commit is contained in:
Wim Taymans 2023-06-28 16:52:11 +02:00
parent f9efc63a04
commit b065899859

View file

@ -1180,12 +1180,12 @@ static void param_changed(void *data, uint32_t id, const struct spa_pod *param)
spa_zero(info); spa_zero(info);
if (param == NULL) { if (param == NULL) {
graph_cleanup(graph); graph_cleanup(graph);
impl->rate = 0;
} else { } else {
if ((res = spa_format_audio_raw_parse(param, &info)) < 0) if ((res = spa_format_audio_raw_parse(param, &info)) < 0)
goto error; goto error;
} }
impl->info = info; impl->info = info;
impl->rate = 0;
break; break;
} }
case SPA_PARAM_Props: case SPA_PARAM_Props: