[FFmpeg-cvslog] avio: replace ETIMEDOUT by EIO

Michael Niedermayer git at videolan.org
Sat Sep 8 02:31:38 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep  6 00:30:58 2012 +0200| [9a27fd12f3bb389db6ea17127b268dfbba74dbc3] | committer: Michael Niedermayer

avio: replace ETIMEDOUT by EIO

ETIMEDOUT is not available on all platforms

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9a27fd12f3bb389db6ea17127b268dfbba74dbc3
---

 libavformat/avio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 6ed63f4..abc7072 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);
             }



More information about the ffmpeg-cvslog mailing list