pacat: pass buffer_attr to recording streams too
authorLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2010 20:09:26 +0000 (21:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2010 20:09:26 +0000 (21:09 +0100)
Pointed out by Colin Guthrie.

https://tango.0pointer.de/pipermail/pulseaudio-discuss/2010-February/006698.html

src/utils/pacat.c

index 75ccd9a..6cbff2e 100644 (file)
@@ -473,7 +473,7 @@ static void context_state_callback(pa_context *c, void *userdata) {
                 }
 
             } else {
-                if (pa_stream_connect_record(stream, device, latency > 0 ? &buffer_attr : NULL, flags) < 0) {
+                if (pa_stream_connect_record(stream, device, &buffer_attr, flags) < 0) {
                     pa_log(_("pa_stream_connect_record() failed: %s"), pa_strerror(pa_context_errno(c)));
                     goto fail;
                 }