]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 6e4ee0639654eac69ae76cb94e5a0bcffb316688..43c0690b9bf87f7a057b80ad79ee8ac73a667a51 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)