summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-04-26 16:27:01 +0000
committerLennart Poettering <lennart@poettering.net>2006-04-26 16:27:01 +0000
commitd4bad65e22d03a788c0e04ff90ec306d59caf9dc (patch)
tree4e8f825c2aa2a7639e565e66dc5caff0295434ce /src
parentc3cc14153a2f519b2333400bfa942f70bca58c95 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/polyp/channelmap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/polyp/channelmap.c b/src/polyp/channelmap.c
index afe56170..794711ae 100644
--- a/src/polyp/channelmap.c
+++ b/src/polyp/channelmap.c
@@ -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;