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 f42abc8..76aea36 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;
     }