summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2013-03-21 12:33:04 +0200
committerTanu Kaskinen <tanuk@iki.fi>2013-03-21 12:35:07 +0200
commita560cf3b679aff998449533c9eecc716591734a6 (patch)
tree2dea5f4b241167c19e54747f7d0a3e54b5b4852e /src/utils
parentc0d1b1e75f08d958b24f62f86ceb742ec80a1b31 (diff)
downloadpulseaudio-a560cf3b679aff998449533c9eecc716591734a6.tar.gz
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.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/pacat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pacat.c b/src/utils/pacat.c
index e7a425520..aa24bd3cf 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;
}