]> git.zerfleddert.de Git - record-dvb/commitdiff
better chunksize
authormichael <michael>
Sat, 1 Jul 2006 17:19:18 +0000 (17:19 +0000)
committermichael <michael>
Sat, 1 Jul 2006 17:19:18 +0000 (17:19 +0000)
record-dvb.c

index 63102cfa3d4bd901d3aa9b7ca964cb18b325b192..d32eba1fe0576d63a75f9c5328d6c85d7b01703b 100644 (file)
@@ -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) {
Impressum, Datenschutz