From: Rémi Denis-Courmont Date: Sat, 5 Jan 2008 18:09:40 +0000 (+0000) Subject: net_Accept: poll() takes milliseconds rather than microseconds X-Git-Tag: 0.9.0-test0~3626 X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=bc938951cb79d7e1d685981127614903d347979c;ds=sidebyside net_Accept: poll() takes milliseconds rather than microseconds --- diff --git a/src/network/tcp.c b/src/network/tcp.c index cdba85e2c1..9198bb2944 100644 --- a/src/network/tcp.c +++ b/src/network/tcp.c @@ -284,7 +284,7 @@ int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait ) ufd[i].revents = 0; } - switch (poll (ufd, n, b_block ? 500 : i_wait)) + switch (poll (ufd, n, b_block ? 500 : i_wait / 1000)) { case -1: if (net_errno != EINTR)