[vlc-devel] commit: net_Write: fix polling ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Oct 12 14:26:46 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 12 15:26:18 2008 +0300| [a45ba22ee6feca5d32662bf433584911b928e7d1] | committer: Rémi Denis-Courmont
net_Write: fix polling
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a45ba22ee6feca5d32662bf433584911b928e7d1
---
src/network/io.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/network/io.c b/src/network/io.c
index a0ece78..ed069b3 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -429,7 +429,7 @@ ssize_t __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
ufd[0].revents = ufd[1].revents = 0;
- if (poll (ufd, 1, -1) == -1)
+ if (poll (ufd, sizeof (ufd) / sizeof (ufd[0]), -1) == -1)
{
if (errno == EINTR)
continue;
More information about the vlc-devel
mailing list