From 1b39496da38155b84636c0f7cee7f7dbbea33632 Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 19 May 2006 14:12:27 +0200 Subject: [PATCH] fix serious typo That max should actually be a min.. --- write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/write.c b/write.c index 6e4ee063..43c0690b 100644 --- a/write.c +++ b/write.c @@ -139,7 +139,7 @@ static int pcm_write(struct writer_node_group *wng, size_t loaded) * wng->max_chunk_bytes; audiobuf = para_realloc(audiobuf, bufsize); prebuf_size = conf.prebuffer_arg * bufsize / 100; - bytes_to_load = PARA_MAX(prebuf_size, wng->max_chunk_bytes); + bytes_to_load = PARA_MIN(prebuf_size, wng->max_chunk_bytes); ret = read_stdin(audiobuf, bytes_to_load, &loaded); if (ret <= 0 || loaded < bytes_to_load) { if (ret >= 0) -- 2.39.2