avio: replace ETIMEDOUT by EIO
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Sep 2012 22:30:58 +0000 (00:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 8 Sep 2012 00:28:20 +0000 (02:28 +0200)
ETIMEDOUT is not available on all platforms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avio.c

index 6ed63f4..abc7072 100644 (file)
@@ -272,7 +272,7 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int
                     if (!wait_since)
                         wait_since = av_gettime();
                     else if (av_gettime() > wait_since + h->rw_timeout)
-                        return AVERROR(ETIMEDOUT);
+                        return AVERROR(EIO);
                 }
                 av_usleep(1000);
             }