[pulseaudio-commits] src/utils

Tanu Kaskinen tanuk at kemper.freedesktop.org
Thu Mar 21 03:35:36 PDT 2013


 src/utils/pacat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a560cf3b679aff998449533c9eecc716591734a6
Author: Tanu Kaskinen <tanuk at iki.fi>
Date:   Thu Mar 21 12:33:04 2013 +0200

    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.

diff --git a/src/utils/pacat.c b/src/utils/pacat.c
index e7a4255..aa24bd3 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;
     }



More information about the pulseaudio-commits mailing list