mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
097c64ffcb
commit
9a27fd12f3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user