Skip to content
Snippets Groups Projects
Commit 19c91596 authored by Julian Bouzas's avatar Julian Bouzas Committed by George Kiagiadakis
Browse files

algorithms: make sure channels is always less or equal to SPA_AUDIO_MAX_CHANNELS

Needed when using audiotestsrc with an adapter
parent 63482108
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment