diff mbox series

[FFmpeg-devel] avformat/hlsenc: remove unnecessary http/https shutdown status operate

Message ID 20210913021204.22138-1-lq@chinaffmpeg.org
State New
Headers show
Series [FFmpeg-devel] avformat/hlsenc: remove unnecessary http/https shutdown status operate
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Steven Liu Sept. 13, 2021, 2:12 a.m. UTC
there have been get http/https shutdown status in ffurl_shutdown.
so unnecessary http/https shutdown status operate.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavformat/hlsenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 7c37bc50b9..ad3800ecae 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -316,8 +316,7 @@  static int hlsenc_io_close(AVFormatContext *s, AVIOContext **pb, char *filename)
         URLContext *http_url_context = ffio_geturlcontext(*pb);
         av_assert0(http_url_context);
         avio_flush(*pb);
-        ffurl_shutdown(http_url_context, AVIO_FLAG_WRITE);
-        ret = ff_http_get_shutdown_status(http_url_context);
+        ret = ffurl_shutdown(http_url_context, AVIO_FLAG_WRITE);
 #endif
     }
     return ret;