From: Andre Date: Fri, 19 May 2006 12:12:27 +0000 (+0200) Subject: fix serious typo X-Git-Tag: v0.2.14~101^2~32 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=1b39496da38155b84636c0f7cee7f7dbbea33632;p=paraslash.git fix serious typo That max should actually be a min.. --- 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)