diff options
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; } } |