Commit 7724ba6c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: really fix poll() loop *cough* *cough*

parent 018ea797
......@@ -392,11 +392,9 @@ static inline int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
do
{
int ugly_timeout = 50;
if (timeout >= 50)
timeout -= 50;
else if ((unsigned)timeout < 50u)
ugly_timeout = timeout;
int ugly_timeout = ((unsigned)timeout >= 50) ? 50 : timeout;
if (timeout >= 0)
timeout -= ugly_timeout;
vlc_testcancel ();
val = poll (fds, nfds, ugly_timeout);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment