mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
format: Fix channel map handling
Channel map handling in the extended API was broken. Thanks for Milos_SD for pointing this out on IRC.
This commit is contained in:
parent
f4eccad1e6
commit
117c714594
2 changed files with 9 additions and 7 deletions
|
|
@ -262,7 +262,8 @@ int pa_sink_input_new(
|
|||
* to using the sample spec and channel map after all decisions w.r.t.
|
||||
* routing are complete. */
|
||||
pa_idxset *tmp = pa_idxset_new(NULL, NULL);
|
||||
pa_format_info *f = pa_format_info_from_sample_spec(&data->sample_spec, &data->channel_map);
|
||||
pa_format_info *f = pa_format_info_from_sample_spec(&data->sample_spec,
|
||||
data->channel_map_is_set ? &data->channel_map : NULL);
|
||||
pa_idxset_put(tmp, f, NULL);
|
||||
pa_sink_input_new_data_set_formats(data, tmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue