From a560cf3b679aff998449533c9eecc716591734a6 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Thu, 21 Mar 2013 12:33:04 +0200 Subject: [PATCH] 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. --- src/utils/pacat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pacat.c b/src/utils/pacat.c index e7a42552..aa24bd3c 100644 --- a/src/utils/pacat.c +++ b/src/utils/pacat.c @@ -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; } -- 2.39.2