From dba12497cea20a96739be2fd80caa7427e20570b Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 1 Jul 2006 17:19:18 +0000 Subject: [PATCH 1/1] better chunksize --- record-dvb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.39.5