You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/hls: hide misleading warning when http reconnect is required
AVERROR_EOF is an internal error which means the http socket is no longer valid for new requests. It informs the caller that a new connection must be established, and as such does not need to be surfaced to the user as a warning. Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
@@ -670,6 +670,7 @@ static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url,
|
|||||||
if (ret == AVERROR_EXIT) {
|
if (ret == AVERROR_EXIT) {
|
||||||
return ret;
|
return ret;
|
||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
|
if (ret != AVERROR_EOF)
|
||||||
av_log(s, AV_LOG_WARNING,
|
av_log(s, AV_LOG_WARNING,
|
||||||
"keepalive request failed for '%s', retrying with new connection: %s\n",
|
"keepalive request failed for '%s', retrying with new connection: %s\n",
|
||||||
url, av_err2str(ret));
|
url, av_err2str(ret));
|
||||||
@@ -726,6 +727,7 @@ static int parse_playlist(HLSContext *c, const char *url,
|
|||||||
if (ret == AVERROR_EXIT) {
|
if (ret == AVERROR_EXIT) {
|
||||||
return ret;
|
return ret;
|
||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
|
if (ret != AVERROR_EOF)
|
||||||
av_log(c->ctx, AV_LOG_WARNING,
|
av_log(c->ctx, AV_LOG_WARNING,
|
||||||
"keepalive request failed for '%s', retrying with new connection: %s\n",
|
"keepalive request failed for '%s', retrying with new connection: %s\n",
|
||||||
url, av_err2str(ret));
|
url, av_err2str(ret));
|
||||||
|
Reference in New Issue
Block a user