[vlc-commits] net_Read: break potential dead lock with waitall = true
Rémi Denis-Courmont
git at videolan.org
Wed Aug 14 21:47:25 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 14 21:30:03 2013 +0300| [880e74599e17a815c17fa03fac395c70b0a94c27] | committer: Denis Charmet
net_Read: break potential dead lock with waitall = true
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=880e74599e17a815c17fa03fac395c70b0a94c27
---
src/network/io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/network/io.c b/src/network/io.c
index 21bf82b..740c990 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -314,7 +314,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
p_buf = (char *)p_buf + n;
i_buflen -= n;
- if (!waitall)
+ if (!waitall || i_buflen == 0)
break;
}
else /* n == 0 */
More information about the vlc-commits
mailing list