mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 12:48:03 +02:00
algorithms: make sure channels is always less or equal to SPA_AUDIO_MAX_CHANNELS
Needed when using audiotestsrc with an adapter
This commit is contained in:
parent
63482108df
commit
19c91596c8
1 changed files with 1 additions and 0 deletions
|
|
@ -330,6 +330,7 @@ select_channels (WpSpaPod *value)
|
|||
i++;
|
||||
}
|
||||
ret = SPA_MAX (vals[1], vals[2]);
|
||||
ret = SPA_MIN (ret, SPA_AUDIO_MAX_CHANNELS);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue