aboutsummaryrefslogtreecommitdiff
path: root/libavformat/tcp.c
diff options
context:
space:
mode:
authorMartin Storsjö2010-03-26 16:04:38 +0000
committerMartin Storsjö2010-03-26 16:04:38 +0000
commitcae9a15c98eb9b1ba431d2d55a39171783407bc0 (patch)
tree01192de415e1cd1779690c5d7f7544e0347ead22 /libavformat/tcp.c
parent3fd427cd194ca9bd486fb222277b03ee90a64384 (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.c4
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;
}
}