From 85060fe6b42032feededce6daf7d2265526d34bf Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Wed, 8 Aug 2007 12:08:16 +0000 Subject: [PATCH] MinGW returns EAGAIN instead of EINPROGRESS Originally committed as revision 9982 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 3c9ff0fd53d..2d417ecc478 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 */ -- 2.39.2