pacat: Fix mode detection for parecord
authorTanu Kaskinen <tanuk@iki.fi>
Thu, 21 Mar 2013 10:33:04 +0000 (12:33 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 21 Mar 2013 10:35:07 +0000 (12:35 +0200)
Due to the missing "else", parecord was interpreted as parec, causing
the raw flag to be set when it shouldn't have been set.

src/utils/pacat.c

index e7a4255..aa24bd3 100644 (file)
@@ -783,7 +783,7 @@ int main(int argc, char *argv[]) {
     } else if (strstr(bn, "cat")) {
         mode = PLAYBACK;
         raw = TRUE;
-    } if (strstr(bn, "rec") || strstr(bn, "mon")) {
+    } else if (strstr(bn, "rec") || strstr(bn, "mon")) {
         mode = RECORD;
         raw = TRUE;
     }