[vlc-devel] commit: Win32: fix poll() return value ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 18 10:55:46 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 18 11:54:48 2009 +0200| [c6ea17a3ce7e5884c323a66bd48f09f551dbb86d] | committer: Rémi Denis-Courmont
Win32: fix poll() return value
Spotted by Laurent
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6ea17a3ce7e5884c323a66bd48f09f551dbb86d
---
src/network/poll.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/network/poll.c b/src/network/poll.c
index 6c9aec3..5590b36 100644
--- a/src/network/poll.c
+++ b/src/network/poll.c
@@ -99,7 +99,7 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
if (events.iErrorCode[FD_WRITE_BIT])
fds[i].revents |= POLLERR;
}
- if (fds[i].events)
+ if (fds[i].revents)
n++;
}
if (ret == 0)
More information about the vlc-devel
mailing list