Merge branch 'fix-position' into 'master'

spa: param: infer raw audio channels from position if unset

Closes #4951

See merge request pipewire/pipewire!2576
This commit is contained in:
P V 2025-10-26 13:48:09 +00:00
commit abc2e48cf5

View file

@ -78,6 +78,7 @@ spa_audio_info_raw_ext_update(struct spa_audio_info_raw *info, size_t size,
max_position, &v) > 0) {
if (v > max_position)
return -ECHRNG;
info->channels = v;
SPA_FLAG_CLEAR(info->flags, SPA_AUDIO_FLAG_UNPOSITIONED);
}
}