projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0d1b1e
)
pacat: Fix mode detection for parecord
author
Tanu Kaskinen
<tanuk@iki.fi>
Thu, 21 Mar 2013 10:33:04 +0000
(12:33 +0200)
committer
Tanu 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
patch
|
blob
|
history
diff --git
a/src/utils/pacat.c
b/src/utils/pacat.c
index
e7a4255
..
aa24bd3
100644
(file)
--- 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;
}