mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audio: don't limit channels to max positions
We can have more channels than we have positions.
This commit is contained in:
parent
99bbac9cbf
commit
ae50bb5dc0
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ spa_audio_info_raw_update(struct spa_audio_info_raw *info, const char *key, cons
|
||||||
info->rate = v;
|
info->rate = v;
|
||||||
} else if (spa_streq(key, SPA_KEY_AUDIO_CHANNELS)) {
|
} else if (spa_streq(key, SPA_KEY_AUDIO_CHANNELS)) {
|
||||||
if (spa_atou32(val, &v, 0) && (force || info->channels == 0))
|
if (spa_atou32(val, &v, 0) && (force || info->channels == 0))
|
||||||
info->channels = SPA_MIN(v, SPA_N_ELEMENTS(info->position));
|
info->channels = v;
|
||||||
} else if (spa_streq(key, SPA_KEY_AUDIO_POSITION)) {
|
} else if (spa_streq(key, SPA_KEY_AUDIO_POSITION)) {
|
||||||
if (force || info->channels == 0) {
|
if (force || info->channels == 0) {
|
||||||
if (spa_audio_parse_position_n(val, strlen(val), info->position,
|
if (spa_audio_parse_position_n(val, strlen(val), info->position,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue