diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-08-08 16:08:16 +0400 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-08-08 16:08:16 +0400 |
commit | 85060fe6b42032feededce6daf7d2265526d34bf (patch) | |
tree | ae2228b33bfb9b42c2543e724c3ed1a9e14239e0 | |
parent | af7d793c00666d57a9c2c5aa71ed3db5259d2089 (diff) |
MinGW returns EAGAIN instead of EINPROGRESS
Originally committed as revision 9982 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 3c9ff0fd53..2d417ecc47 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -69,7 +69,8 @@ static int tcp_open(URLContext *h, const char *uri, int flags) if (ret < 0) { if (ff_neterrno() == FF_NETERROR(EINTR)) goto redo; - if (ff_neterrno() != FF_NETERROR(EINPROGRESS)) + if (ff_neterrno() != FF_NETERROR(EINPROGRESS) && + ff_neterrno() != FF_NETERROR(EAGAIN)) goto fail; /* wait until we are connected or until abort */ |