[vlc-commits] demux: adaptative: don't retry on EINTR

Francois Cartegnie git at videolan.org
Tue Nov 10 11:17:42 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov  9 15:20:59 2015 +0100| [51f2e9698636d6c880967abf0fad5b6ed856a7d2] | committer: Francois Cartegnie

demux: adaptative: don't retry on EINTR

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

 modules/demux/adaptative/http/Sockets.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/adaptative/http/Sockets.cpp b/modules/demux/adaptative/http/Sockets.cpp
index 3c0b1ab..20ad448 100644
--- a/modules/demux/adaptative/http/Sockets.cpp
+++ b/modules/demux/adaptative/http/Sockets.cpp
@@ -76,7 +76,7 @@ ssize_t Socket::read(vlc_object_t *stream, void *p_buffer, size_t len)
     do
     {
         size = net_Read(stream, netfd, p_buffer, len);
-    } while (size < 0 && (errno == EINTR || errno==EAGAIN) );
+    } while (size < 0 && errno==EAGAIN );
     return size;
 }
 



More information about the vlc-commits mailing list