Commit e4dc6784 authored by Mario Speiß's avatar Mario Speiß Committed by Rémi Denis-Courmont

too long timeouts in win32 vlc_poll

When vlc_poll is called with timeout of i.e. 5000ms it may happen that the
waiting time might be as long as 2500s ! Probably poll should be called with
the 50ms timeout as many times until the original provided timeout has been
reached.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent e1aa97a9
...@@ -392,7 +392,7 @@ static inline int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout) ...@@ -392,7 +392,7 @@ static inline int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
while (timeout > 50) while (timeout > 50)
{ {
int val = poll (fds, nfds, timeout); int val = poll (fds, nfds, 50);
if (val != 0) if (val != 0)
return val; return val;
timeout -= 50; timeout -= 50;
......
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