]> git.sesse.net Git - vlc/commitdiff
Cut & paste error
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Sep 2007 20:04:14 +0000 (20:04 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Sep 2007 20:04:14 +0000 (20:04 +0000)
src/network/udp.c

index a7aa0b3e396fc70ab601c2a0293cf4a6865ea369..e5968308e84e5ad8aab1c6caf8e9e81b560f3911 100644 (file)
@@ -877,10 +877,10 @@ int net_SetCSCov (int fd, int sendcov, int recvcov)
                             &sendcov, sizeof (sendcov)))
                 return VLC_EGENERIC;
 
-            if ((sendcov == -1) || (sendcov > 56))
-                sendcov = 0;
+            if ((recvcov == -1) || (recvcov > 56))
+                recvcov = 0;
             else
-                sendcov = (sendcov + 3) / 4;
+                recvcov = (recvcov + 3) / 4;
             if (setsockopt (fd, SOL_DCCP, DCCP_SOCKOPT_RECV_CSCOV,
                             &recvcov, sizeof (recvcov)))
                 return VLC_EGENERIC;