diff options
author | Martin Storsjö | 2010-03-26 16:04:38 +0000 |
---|---|---|
committer | Martin Storsjö | 2010-03-26 16:04:38 +0000 |
commit | cae9a15c98eb9b1ba431d2d55a39171783407bc0 (patch) | |
tree | 01192de415e1cd1779690c5d7f7544e0347ead22 /libavformat/tcp.c | |
parent | 3fd427cd194ca9bd486fb222277b03ee90a64384 (diff) |
Don't report EINTR from select as an error, retry select instead
Originally committed as revision 22694 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index ae846a4c37..79cabdfe90 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -147,6 +147,8 @@ static int tcp_read(URLContext *h, uint8_t *buf, int size) return AVERROR(ff_neterrno()); } else return len; } else if (ret < 0) { + if (ff_neterrno() == FF_NETERROR(EINTR)) + continue; return -1; } } @@ -180,6 +182,8 @@ static int tcp_write(URLContext *h, uint8_t *buf, int size) size -= len; buf += len; } else if (ret < 0) { + if (ff_neterrno() == FF_NETERROR(EINTR)) + continue; return -1; } } |