[vlc-commits] httpd: use vlc_tls_GetPollFD()
Rémi Denis-Courmont
git at videolan.org
Sun Nov 18 16:57:13 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 17 21:48:10 2018 +0200| [c87bfccf1930591b210755f8c6bd0b313e2cffb9] | committer: Rémi Denis-Courmont
httpd: use vlc_tls_GetPollFD()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c87bfccf1930591b210755f8c6bd0b313e2cffb9
---
src/network/httpd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index 3d7ae0405d..e0f24d7db6 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -1704,7 +1704,6 @@ static void httpdLoop(httpd_host_t *host)
struct pollfd *pufd = ufd + nfd;
assert (pufd < ufd + (sizeof (ufd) / sizeof (ufd[0])));
- pufd->fd = vlc_tls_GetFD(cl->sock);
pufd->events = pufd->revents = 0;
switch (cl->i_state) {
@@ -1926,6 +1925,8 @@ static void httpdLoop(httpd_host_t *host)
}
}
+ pufd->fd = vlc_tls_GetPollFD(cl->sock, &pufd->events);
+
if (pufd->events != 0)
nfd++;
else
More information about the vlc-commits
mailing list