]> git.sesse.net Git - vlc/commitdiff
increase output buffer for HTTP streaming to 1 MByte
authorMarian Durkovic <md@videolan.org>
Sat, 22 Oct 2005 11:56:42 +0000 (11:56 +0000)
committerMarian Durkovic <md@videolan.org>
Sat, 22 Oct 2005 11:56:42 +0000 (11:56 +0000)
- now Windows machines are able to stream even 20 Mbps HDTV over TCP
- resolves  http://forum.videolan.org/viewtopic.php?t=8374

src/misc/httpd.c

index 7bf31fbc70f82cf2a7fee3bacff66b67ea274d74..31c674cdefd3a01051f16ac6ad8f95696966c791 100644 (file)
@@ -854,9 +854,9 @@ static int httpd_StreamCallBack( httpd_callback_sys_t *p_sys,
 
         i_pos   = answer->i_body_offset % stream->i_buffer_size;
         i_write = stream->i_buffer_pos - answer->i_body_offset;
-        if( i_write > 10000 )
+        if( i_write > 1000000 )
         {
-            i_write = 10000;
+            i_write = 1000000;
         }
         else if( i_write <= 0 )
         {
@@ -1485,7 +1485,7 @@ static void httpd_ClientInit( httpd_client_t *cl )
     cl->i_state = HTTPD_CLIENT_RECEIVING;
     cl->i_activity_date = mdate();
     cl->i_activity_timeout = I64C(10000000);
-    cl->i_buffer_size = 10000;
+    cl->i_buffer_size = 1000000;
     cl->i_buffer = 0;
     cl->p_buffer = malloc( cl->i_buffer_size );
     cl->i_mode   = HTTPD_CLIENT_FILE;