mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
f9efc63a04
commit
b065899859
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue