From 9a27fd12f3bb389db6ea17127b268dfbba74dbc3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 6 Sep 2012 00:30:58 +0200 Subject: avio: replace ETIMEDOUT by EIO ETIMEDOUT is not available on all platforms Signed-off-by: Michael Niedermayer --- libavformat/avio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/avio.c') diff --git a/libavformat/avio.c b/libavformat/avio.c index 6ed63f4c85..abc70723ef 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -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); } -- cgit v1.2.3