X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/blobdiff_plain/460e6d22fd475792a771686c693bc251912517de..cda833b266970ebc861d5e84779f13571b05834e:/record-dvb.c 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) {