Commit 2477bfe2 authored by wm4's avatar wm4

http: avoid logging reconnect warning if stream was aborted

If the stream was aborted using the libavformat interrupt callback, we
don't want it to log the reconnect warning. (Exiting after logging this
warning worked well, so this is only for avoiding the ugly warning.)
parent 18fbfd7b
......@@ -1452,6 +1452,9 @@ static int http_read_stream(URLContext *h, uint8_t *buf, int size)
|| (read_ret == AVERROR_EOF && s->reconnect_at_eof && (!h->is_streamed || s->reconnect_streamed))) {
uint64_t target = h->is_streamed ? 0 : s->off;
if (read_ret == AVERROR_EXIT)
return read_ret;
if (reconnect_delay > s->reconnect_delay_max)
return AVERROR(EIO);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment