diff --git a/libavformat/hls.c b/libavformat/hls.c index 5dadcfcc29092a7c3c253256b0a007c6699ecdd5..3805ed6dbaf58332b3c8f8bbbde6c739ad34e2c0 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1497,7 +1497,7 @@ reload: return ret; } - if (c->http_persistent) { + if (c->http_persistent && av_strstart(seg->url, "http", NULL)) { v->input_read_done = 1; } else { ff_format_io_close(v->parent, &v->input);