diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-06 19:39:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-06 20:43:38 +0200 |
commit | 63974bd494c679e898b394a3b46500eb2685e293 (patch) | |
tree | 63ffe7b6b856d468af9b8329188195e6b7b0c8da /libavformat/http.c | |
parent | 7990beedee02b24850a20de651ecce5a96048ab9 (diff) | |
download | ffmpeg-63974bd494c679e898b394a3b46500eb2685e293.tar.gz |
avformat/http: print error that causes reconnection
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 476b53b3f6..dfe04ad63a 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1242,7 +1242,7 @@ static int http_read_stream(URLContext *h, uint8_t *buf, int size) #endif /* CONFIG_ZLIB */ read_ret = http_buf_read(h, buf, size); if (read_ret < 0 && s->reconnect && !h->is_streamed && s->filesize > 0 && s->off < s->filesize) { - av_log(h, AV_LOG_INFO, "Will reconnect at %"PRId64".\n", s->off); + av_log(h, AV_LOG_INFO, "Will reconnect at %"PRId64" error=%s.\n", s->off, av_err2str(read_ret)); seek_ret = http_seek_internal(h, s->off, SEEK_SET, 1); if (seek_ret != s->off) { av_log(h, AV_LOG_ERROR, "Failed to reconnect at %"PRId64".\n", s->off); |