Revision 688c22e0 libavformat/avio.c

View differences:

libavformat/avio.c
221 221

  
222 222
    len = 0;
223 223
    while (len < size_min) {
224
        if (url_interrupt_cb())
225
            return AVERROR(EINTR);
226 224
        ret = transfer_func(h, buf+len, size-len);
227 225
        if (ret == AVERROR(EINTR))
228 226
            continue;
......
239 237
        if (ret)
240 238
           fast_retries = FFMAX(fast_retries, 2);
241 239
        len += ret;
240
        if (url_interrupt_cb())
241
            return AVERROR(EINTR);
242 242
    }
243 243
    return len;
244 244
}

Also available in: Unified diff