mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: remove some obsolete functions
The spa_audio_info array now always holds enough positions for all channels and we don't need to wrap around.
This commit is contained in:
parent
6d74eee874
commit
78219471ff
12 changed files with 34 additions and 64 deletions
|
|
@ -883,8 +883,8 @@ static int create_stream(struct stream_info *info)
|
|||
s->remap[i] = i;
|
||||
for (j = 0; j < tmp_info.channels; j++) {
|
||||
uint32_t pj, pi;
|
||||
pj = spa_format_audio_raw_get_position(&tmp_info, j);
|
||||
pi = spa_format_audio_raw_get_position(&remap_info, i);
|
||||
pj = tmp_info.position[j];
|
||||
pi = remap_info.position[i];
|
||||
if (pj == pi) {
|
||||
s->remap[i] = j;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue