[FFmpeg-devel] [PATCH] avio: Check for FF_NETERROR(EAGAIN) in retry_transfer_wrapper

Martin Storsjö martin
Thu Feb 17 14:14:49 CET 2011


On Windows, FF_NETERROR(EAGAIN) isn't equal to AVERROR(EAGAIN).

This fixes issue 2614.
---
 libavformat/avio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index a19ec37..64ad320 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -221,7 +221,7 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int
             continue;
         if (h->flags & URL_FLAG_NONBLOCK)
             return ret;
-        if (ret == AVERROR(EAGAIN)) {
+        if (ret == AVERROR(EAGAIN) || ret == FF_NETERROR(EAGAIN)) {
             ret = 0;
             if (fast_retries)
                 fast_retries--;
-- 
1.7.3.1




More information about the ffmpeg-devel mailing list