[vlc-devel] commit: net_Write: fix polling ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Oct 12 14:28:02 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 12 15:26:18 2008 +0300| [9bac059b0bdbdae41ec009587f4eb90109c98c1e] | committer: Rémi Denis-Courmont 

net_Write: fix polling
(cherry picked from commit a45ba22ee6feca5d32662bf433584911b928e7d1)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9bac059b0bdbdae41ec009587f4eb90109c98c1e
---

 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 a463569..afe46a7 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -427,7 +427,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