aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-08-08 12:08:16 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-08-08 12:08:16 +0000
commit85060fe6b42032feededce6daf7d2265526d34bf (patch)
treeae2228b33bfb9b42c2543e724c3ed1a9e14239e0
parentaf7d793c00666d57a9c2c5aa71ed3db5259d2089 (diff)
downloadffmpeg-85060fe6b42032feededce6daf7d2265526d34bf.tar.gz
MinGW returns EAGAIN instead of EINPROGRESS
Originally committed as revision 9982 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/tcp.c3
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 */