]> git.sesse.net Git - vlc/blobdiff - include/vlc_threads.h
too long timeouts in win32 vlc_poll
[vlc] / include / vlc_threads.h
index 7c6a4ca08735c60fecc6fbc6a9bf6ae9ffe6ecb1..337ded42df55f4a879a01b3ac011b6b6c5115b7b 100644 (file)
@@ -392,7 +392,7 @@ static inline int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
 
     while (timeout > 50)
     {
-        int val = poll (fds, nfds, timeout);
+        int val = poll (fds, nfds, 50);
         if (val != 0)
             return val;
         timeout -= 50;