From: Andre Noll Date: Mon, 3 Oct 2011 18:45:09 +0000 (+0200) Subject: stdin: Increase input buffer. X-Git-Tag: v0.4.9~2^2~7 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=def3ce0458757c7a82e6c0abe1b38cb7f7451536;hp=25ca796b7f7a4c5a57799cac2998a66ffde2a81a stdin: Increase input buffer. 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. --- diff --git a/stdin.c b/stdin.c index 14dd9d40..c4ab323d 100644 --- 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)