mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pipewire-alsa: Fix build warning
`pos < 0` always evaluates to false, so remove this condition.
This commit is contained in:
parent
f0d3a7cf49
commit
cff127a138
1 changed files with 1 additions and 1 deletions
|
|
@ -766,7 +766,7 @@ static enum snd_pcm_chmap_position channel_to_chmap(enum spa_audio_channel chann
|
|||
|
||||
static enum spa_audio_channel chmap_to_channel(enum snd_pcm_chmap_position pos)
|
||||
{
|
||||
if (pos < 0 || pos >= SPA_N_ELEMENTS(chmap_info))
|
||||
if (pos >= SPA_N_ELEMENTS(chmap_info))
|
||||
return SPA_AUDIO_CHANNEL_UNKNOWN;
|
||||
return chmap_info[pos].channel;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue