]> code.delx.au - pulseaudio/commitdiff
it was a bad idea to require that a channel map doesn't contain the same position...
authorLennart Poettering <lennart@poettering.net>
Wed, 26 Apr 2006 16:27:01 +0000 (16:27 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 26 Apr 2006 16:27:01 +0000 (16:27 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@806 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/polyp/channelmap.c

index afe56170df42050f88b4cec3316f71c51c6cc58b..794711ae39d67f526dded773526af4312a032ebb 100644 (file)
@@ -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;