pacat: Fix mode detection for parecord

Due to the missing "else", parecord was interpreted as parec, causing
the raw flag to be set when it shouldn't have been set.
This commit is contained in:
Tanu Kaskinen 2013-03-21 12:33:04 +02:00
parent c0d1b1e75f
commit a560cf3b67

View file

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