diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-10-06 11:18:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-10-06 11:18:43 +0000 |
commit | fe5feaeb7629c94f26814a44c0269e09fabf2947 (patch) | |
tree | 14891d5c6e46ddd0e8b5898648703d8d1416e98b | |
parent | a46f7516eccd307416e5ecf8760749a3368ee815 (diff) | |
download | ffmpeg-fe5feaeb7629c94f26814a44c0269e09fabf2947.tar.gz |
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
-rw-r--r-- | libavformat/avio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index bf0d9d8ee5..2dae492ad1 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -252,8 +252,8 @@ int url_write(URLContext *h, const unsigned char *buf, int size) /* avoid sending too big packets */ if (h->max_packet_size && size > h->max_packet_size) 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) |