sink, source: Add comment about not reconfiguring channel map

There is no meaningful usecase at the moment for it.
This commit is contained in:
Arun Raghavan 2022-01-12 16:32:43 -05:00
parent 96c119fbe4
commit 8d6f415c85
2 changed files with 2 additions and 0 deletions

View file

@ -1606,6 +1606,7 @@ int pa_sink_reconfigure(pa_sink *s, pa_sample_spec *spec, pa_channel_map *map, b
desired_spec.rate = default_rate;
}
/* We don't expect to change only the channel map, so we don't check that */
if (pa_sample_spec_equal(&desired_spec, &s->sample_spec) && passthrough == pa_sink_is_passthrough(s))
return 0;

View file

@ -1170,6 +1170,7 @@ int pa_source_reconfigure(pa_source *s, pa_sample_spec *spec, pa_channel_map *ma
desired_spec.rate = default_rate;
}
/* We don't expect to change only the channel map, so we don't check that */
if (pa_sample_spec_equal(&desired_spec, &s->sample_spec) && passthrough == pa_source_is_passthrough(s))
return 0;