]> code.delx.au - pulseaudio/commitdiff
use pa_channel_map_compatible() where applicable
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Sep 2008 23:31:17 +0000 (01:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Sep 2008 23:31:17 +0000 (01:31 +0200)
src/utils/pacat.c

index f42abc8e615248d77984aacbcf4340d4b9879970..76aea36a2cffa543571651e67fc906453c06d379 100644 (file)
@@ -695,7 +695,7 @@ int main(int argc, char *argv[]) {
         goto quit;
     }
 
-    if (channel_map_set && channel_map.channels != sample_spec.channels) {
+    if (channel_map_set && pa_channel_map_compatible(&channel_map, &sample_spec)) {
         fprintf(stderr, _("Channel map doesn't match sample specification\n"));
         goto quit;
     }