mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 10:00:08 +01:00
MinGW returns EAGAIN instead of EINPROGRESS
Originally committed as revision 9982 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -69,7 +69,8 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
if (ff_neterrno() == FF_NETERROR(EINTR))
|
if (ff_neterrno() == FF_NETERROR(EINTR))
|
||||||
goto redo;
|
goto redo;
|
||||||
if (ff_neterrno() != FF_NETERROR(EINPROGRESS))
|
if (ff_neterrno() != FF_NETERROR(EINPROGRESS) &&
|
||||||
|
ff_neterrno() != FF_NETERROR(EAGAIN))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* wait until we are connected or until abort */
|
/* wait until we are connected or until abort */
|
||||||
|
|||||||
Reference in New Issue
Block a user