forked from FFmpeg/FFmpeg
Use retry_transfer_wrapper() in url_write() as its callers do not expect it to stop in the middle.
Originally committed as revision 25368 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a46f7516ec
commit
fe5feaeb76
1 changed files with 2 additions and 2 deletions
|
@ -252,8 +252,8 @@ int url_write(URLContext *h, const unsigned char *buf, int size)
|
||||||
/* avoid sending too big packets */
|
/* avoid sending too big packets */
|
||||||
if (h->max_packet_size && size > h->max_packet_size)
|
if (h->max_packet_size && size > h->max_packet_size)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
ret = h->prot->url_write(h, buf, size);
|
|
||||||
return ret;
|
return retry_transfer_wrapper(h, buf, size, h->prot->url_write);
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t url_seek(URLContext *h, int64_t pos, int whence)
|
int64_t url_seek(URLContext *h, int64_t pos, int whence)
|
||||||
|
|
Loading…
Add table
Reference in a new issue