From eaa3b4acc17bbd7180a46d5c9f3e63442b159cd7 Mon Sep 17 00:00:00 2001 From: Grond66 Date: Fri, 4 Sep 2015 20:05:19 -0700 Subject: [PATCH 1/1] aplay: Remove weird code in pcm_read{,v} This fixes a regression in aplay/arecord which causes arecord to loop creating numerous empty numbered output files when the '-d' is used. Signed-off-by: Grond66 diff --git a/aplay/aplay.c b/aplay/aplay.c index 459f7dd..a26dbdb 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -2009,10 +2009,6 @@ static ssize_t pcm_read(u_char *data, size_t rcount) size_t result = 0; size_t count = rcount; - if (count != chunk_size) { - count = chunk_size; - } - while (count > 0 && !in_aborting) { if (test_position) do_test_position(); @@ -2048,10 +2044,6 @@ static ssize_t pcm_readv(u_char **data, unsigned int channels, size_t rcount) size_t result = 0; size_t count = rcount; - if (count != chunk_size) { - count = chunk_size; - } - while (count > 0 && !in_aborting) { unsigned int channel; void *bufs[channels]; -- 2.1.4