fix serious typo
authorAndre <maan@p133.(none)>
Fri, 19 May 2006 12:12:27 +0000 (14:12 +0200)
committerAndre <maan@p133.(none)>
Fri, 19 May 2006 12:12:27 +0000 (14:12 +0200)
That max should actually be a min..

write.c

diff --git a/write.c b/write.c
index 6e4ee06..43c0690 100644 (file)
--- 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)