mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
use pa_channel_map_init_extend() instead of pa_channel_map_init_auto() as channel map for sink inputs/source outputs in case no map is specified
This commit is contained in:
parent
ae83483cf0
commit
e1dbc75eb8
2 changed files with 2 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ pa_sink_input* pa_sink_input_new(
|
|||
if (pa_channel_map_compatible(&data->sink->channel_map, &data->sample_spec))
|
||||
data->channel_map = data->sink->channel_map;
|
||||
else
|
||||
pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT));
|
||||
pa_channel_map_init_extend(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT);
|
||||
}
|
||||
|
||||
pa_return_null_if_fail(pa_channel_map_valid(&data->channel_map));
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ pa_source_output* pa_source_output_new(
|
|||
if (pa_channel_map_compatible(&data->source->channel_map, &data->sample_spec))
|
||||
data->channel_map = data->source->channel_map;
|
||||
else
|
||||
pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT));
|
||||
pa_channel_map_init_extend(&data->channel_map, data->sample_spec.channels, PA_CHANNEL_MAP_DEFAULT);
|
||||
}
|
||||
|
||||
pa_return_null_if_fail(pa_channel_map_valid(&data->channel_map));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue