mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
it was a bad idea to require that a channel map doesn't contain the same position twice
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@806 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c3cc14153a
commit
d4bad65e22
1 changed files with 0 additions and 6 deletions
|
|
@ -286,16 +286,10 @@ int pa_channel_map_valid(const pa_channel_map *map) {
|
|||
return 0;
|
||||
|
||||
for (c = 0; c < map->channels; c++) {
|
||||
unsigned k;
|
||||
|
||||
if (map->map[c] < 0 ||map->map[c] >= PA_CHANNEL_POSITION_MAX)
|
||||
return 0;
|
||||
|
||||
/* Don't allow positions to be specified twice */
|
||||
for (k = 0; k < c; k++)
|
||||
if (map->map[k] == map->map[c])
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue