diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2013-03-21 12:33:04 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2013-03-21 12:35:07 +0200 |
commit | a560cf3b679aff998449533c9eecc716591734a6 (patch) | |
tree | 2dea5f4b241167c19e54747f7d0a3e54b5b4852e /src/utils | |
parent | c0d1b1e75f08d958b24f62f86ceb742ec80a1b31 (diff) | |
download | pulseaudio-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.c | 2 |
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; } |