avio: replace ETIMEDOUT by EIO

ETIMEDOUT is not available on all platforms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-09-06 00:30:58 +02:00
parent 097c64ffcb
commit 9a27fd12f3
1 changed files with 1 additions and 1 deletions

View 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);
}