]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hlsenc: Don't reset AVIOContext pointer manually a second time
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 9 May 2020 13:34:09 +0000 (15:34 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 10 May 2020 19:40:13 +0000 (21:40 +0200)
ff_format_io_close() already does it for us.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/hlsenc.c

index 7b289c060f733cd0e7c228bf78e4d23de17eac0b..a796c124ddedf6f1516cd0f3a7397ee5947b8bcf 100644 (file)
@@ -2497,7 +2497,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
             if ((ret = hls_window(s, 0, vs)) < 0) {
                 av_log(s, AV_LOG_WARNING, "upload playlist failed, will retry with a new http session.\n");
                 ff_format_io_close(s, &vs->out);
-                vs->out = NULL;
                 if ((ret = hls_window(s, 0, vs)) < 0) {
                     av_freep(&old_filename);
                     return ret;