|
|
@@ -221,8 +221,6 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int |
|
|
|
|
|
|
|
|
len = 0; |
|
|
len = 0; |
|
|
while (len < size_min) { |
|
|
while (len < size_min) { |
|
|
if (url_interrupt_cb()) |
|
|
|
|
|
return AVERROR(EINTR); |
|
|
|
|
|
ret = transfer_func(h, buf+len, size-len); |
|
|
ret = transfer_func(h, buf+len, size-len); |
|
|
if (ret == AVERROR(EINTR)) |
|
|
if (ret == AVERROR(EINTR)) |
|
|
continue; |
|
|
continue; |
|
|
@@ -239,6 +237,8 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int |
|
|
if (ret) |
|
|
if (ret) |
|
|
fast_retries = FFMAX(fast_retries, 2); |
|
|
fast_retries = FFMAX(fast_retries, 2); |
|
|
len += ret; |
|
|
len += ret; |
|
|
|
|
|
if (url_interrupt_cb()) |
|
|
|
|
|
return AVERROR(EINTR); |
|
|
} |
|
|
} |
|
|
return len; |
|
|
return len; |
|
|
} |
|
|
} |
|
|
|