diff mbox series

[FFmpeg-devel] avformat/hlsenc: remove redundant hlsenc_io_close in hls_write_trailer

Message ID 20200312030254.58877-1-lq@chinaffmpeg.org
State New
Headers show
Series [FFmpeg-devel] avformat/hlsenc: remove redundant hlsenc_io_close in hls_write_trailer
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Steven Liu March 12, 2020, 3:02 a.m. UTC
fix ticket: 8566

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/hlsenc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Steven Liu March 12, 2020, 3:04 a.m. UTC | #1
> 2020年3月12日 上午11:02,Steven Liu <lq@chinaffmpeg.org> 写道:
> 
> fix ticket: 8566
> 
> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
> ---
> libavformat/hlsenc.c | 1 -
> 1 file changed, 1 deletion(-)
> 
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index 4b28c412fa..75e75ff57a 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -2587,7 +2587,6 @@ static int hls_write_trailer(struct AVFormatContext *s)
>             goto failed;
> 
>         vs->size = range_length;
> -        hlsenc_io_close(s, &vs->out, filename);
>         ret = hlsenc_io_close(s, &vs->out, filename);
>         if (ret < 0) {
>             av_log(s, AV_LOG_WARNING, "upload segment failed, will retry with a new http session.\n");
> -- 
> 2.25.0
> 

This patch should remove the comment fix ticket: 8566

Just remove the redundant hlsenc_io_close

Thanks
Steven
diff mbox series

Patch

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 4b28c412fa..75e75ff57a 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2587,7 +2587,6 @@  static int hls_write_trailer(struct AVFormatContext *s)
             goto failed;
 
         vs->size = range_length;
-        hlsenc_io_close(s, &vs->out, filename);
         ret = hlsenc_io_close(s, &vs->out, filename);
         if (ret < 0) {
             av_log(s, AV_LOG_WARNING, "upload segment failed, will retry with a new http session.\n");