Browse Source

avio: replace ETIMEDOUT by EIO

ETIMEDOUT is not available on all platforms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 12 years ago
parent
commit
9a27fd12f3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/avio.c

+ 1
- 1
libavformat/avio.c 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);
}


Loading…
Cancel
Save