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) ...@@ -392,11 +392,9 @@ static inline int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
do do
{ {
int ugly_timeout = 50; int ugly_timeout = ((unsigned)timeout >= 50) ? 50 : timeout;
if (timeout >= 50) if (timeout >= 0)
timeout -= 50; timeout -= ugly_timeout;
else if ((unsigned)timeout < 50u)
ugly_timeout = timeout;
vlc_testcancel (); vlc_testcancel ();
val = poll (fds, nfds, ugly_timeout); 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