mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
sink: Only update sink inputs if reconfiguration succeeds
This commit is contained in:
parent
8fff528000
commit
de137908a8
1 changed files with 4 additions and 4 deletions
|
|
@ -1638,11 +1638,11 @@ void pa_sink_reconfigure(pa_sink *s, pa_sample_spec *spec, pa_channel_map *map,
|
|||
pa_log_info("Reconfigured successfully to: %s, %s",
|
||||
pa_sample_spec_snprint(spec_str, sizeof(spec_str), &s->sample_spec),
|
||||
pa_channel_map_snprint(map_str, sizeof(map_str), &s->channel_map));
|
||||
}
|
||||
|
||||
PA_IDXSET_FOREACH(i, s->inputs, idx) {
|
||||
if (i->state == PA_SINK_INPUT_CORKED)
|
||||
pa_sink_input_update_resampler(i, true);
|
||||
PA_IDXSET_FOREACH(i, s->inputs, idx) {
|
||||
if (i->state == PA_SINK_INPUT_CORKED)
|
||||
pa_sink_input_update_resampler(i, true);
|
||||
}
|
||||
}
|
||||
|
||||
if (!restore && !pa_channel_map_equal(&old_map, &s->channel_map)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue