X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhlsproto.c;h=9e78f931e87a8ce13e36f891b93a6fcf5deca488;hb=131f2c2712479a44332866b442526abe97e0c316;hp=e5673e5e03510048ea3aaa6e3440b54fdbbf9ab7;hpb=cd8087444bb459c7c62e21913adfef5ec09675cc;p=ffmpeg diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index e5673e5e035..9e78f931e87 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -22,7 +22,7 @@ /** * @file * Apple HTTP Live Streaming Protocol Handler - * http://tools.ietf.org/html/draft-pantos-http-live-streaming + * https://www.rfc-editor.org/rfc/rfc8216.txt */ #include "libavutil/avstring.h" @@ -178,7 +178,7 @@ static int hls_close(URLContext *h) free_segment_list(s); free_variant_list(s); - ffurl_close(s->seg_hd); + ffurl_closep(&s->seg_hd); return 0; } @@ -260,8 +260,7 @@ start: return ret; } if (s->seg_hd) { - ffurl_close(s->seg_hd); - s->seg_hd = NULL; + ffurl_closep(&s->seg_hd); s->cur_seq_no++; } reload_interval = s->n_segments > 0 ?