From: michael Date: Sat, 1 Jul 2006 17:19:18 +0000 (+0000) Subject: better chunksize X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/commitdiff_plain/dba12497cea20a96739be2fd80caa7427e20570b better chunksize --- diff --git a/record-dvb.c b/record-dvb.c index 63102cf..d32eba1 100644 --- a/record-dvb.c +++ b/record-dvb.c @@ -13,7 +13,7 @@ #include "http.h" #include "mcast.h" -#define CHUNKSIZE 8192 +#define CHUNKSIZE 1500 void record(int(*open_fn)(char *), char *url, char *outfile, int duration) { @@ -42,7 +42,6 @@ void record(int(*open_fn)(char *), char *url, char *outfile, int duration) /* TODO: Insert better connection-loss recovery here */ in = (*open_fn)(url); } - written = 0; do { if ((i = write(out, buffer, bytes-written)) < 0) {