]> git.sesse.net Git - vlc/commitdiff
* src/misc/net.c: fix for the udp-auto-mtu on win32.
authorGildas Bazin <gbazin@videolan.org>
Wed, 9 Jun 2004 11:13:42 +0000 (11:13 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 9 Jun 2004 11:13:42 +0000 (11:13 +0000)
src/misc/net.c

index e15138e9bdafdd5904766ff68d778457ace95a19..74ade89a1907b7e4fe88236bdfc2bacb1c3004e4 100644 (file)
@@ -291,7 +291,7 @@ int __net_Read( vlc_object_t *p_this, int fd, uint8_t *p_data, int i_data,
             {
                 msg_Err( p_this, "recv() failed. "
                          "Increase the mtu size (--mtu option)" );
-                i_recv = i_data;
+                i_total += i_data;
             }
             else
                 msg_Err( p_this, "recv failed (%i)", WSAGetLastError() );