]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
stdin: Increase input buffer.
authorAndre Noll <maan@systemlinux.org>
Mon, 3 Oct 2011 18:45:09 +0000 (20:45 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 13 Nov 2011 13:40:48 +0000 (14:40 +0100)
Some flac files may contain the contain arbitrary large metadata
at the beginning and libflac wants to see this data in one go.
128K should be enough for most cases.

stdin.c

diff --git a/stdin.c b/stdin.c
index 14dd9d40f4d56e2cb5845fa95546db7a7baa8581..c4ab323d488da7dc4e1aa1b6fc05af9e88b4b717 100644 (file)
--- a/stdin.c
+++ b/stdin.c
@@ -104,7 +104,7 @@ void stdin_set_defaults(struct stdin_task *sit)
 
        sit->task.pre_select = stdin_pre_select;
        sit->task.post_select = stdin_post_select;
-       sit->btrp = btr_pool_new("stdin", 64 * 1024);
+       sit->btrp = btr_pool_new("stdin", 128 * 1024);
        sprintf(sit->task.status, "stdin reader");
        ret = mark_fd_nonblocking(STDIN_FILENO);
        if (ret >= 0)