From patchwork Mon Sep 13 02:12:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 30202 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp3601438iov; Sun, 12 Sep 2021 19:12:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOah+rJmzAwNUNMYyJlB5Yg8Izz6kIpsTrx6LibzsjDqjy3ShT2m9V5aUyq/SRLM1uWb7M X-Received: by 2002:a05:6402:18e:: with SMTP id r14mr1493568edv.99.1631499145306; Sun, 12 Sep 2021 19:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631499145; cv=none; d=google.com; s=arc-20160816; b=ElzwkvwJWj73E0FmHB85Z0tTY4fEAXtyyfmgV+YF1M9Ioy05Nvwg0tauJfgzvNztnF 4qG7wxC+Moxz+RthctW5l7+/efpehUip0Mn2/EG8ie9qSt/nqm0U+v3gtke6stLnrY8U vktfSk3py7AQzPdZsukz3CXeQ/6eHCmV7CE4T3SxvRSKEXPu6J1iEfgy5FMYJbx89b/r QhbdGXbZZoB19gvqWg6XbduBZKV3N9gZXIVuSsbRkkKFZ/NLr3b9PCyaq96mXzsDZ1hc TdraKe2n3L/YQcexa/otLY328ZISowWNnd8y93XZD7Lhi7ioBvGVoFZYVxVMsFV7ntCI Vbgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:mime-version:message-id:date :to:from:delivered-to; bh=SLt2chKVs13EjDQ4ZwGw6g7IFuyQ/ukv8VM3WZiBTJg=; b=RcdGBJbYEqKytJAOoVW9zF5LDOwkWavAVStUOGPGRxitztSpjq4JRkPcmFgTCviR0/ dUV+da9Y4sfCwOwEruqsA6RAPSuj6yJKSvx42fETg0lfcYWs0fgtUJ4+9qvRsmb/VHqF cscav40+UmewnKYNPIlSjFv40+Cm9SG4IgdTYB8N2z0YL9aAK0Fp/50BZy8VCTm7rD+s yNxYSk8LsaisecqEK8VJnzdlFgXe3bWoKQ9uK+hej+NvTpivqy85LwyXIiHNSzdmcgIs eAhKpHr5PSbTaYB8X80F14j0xvu/CS8+Z9/HUgnH74W4HEQF/SEY3+Ykhu1OCzMVOfHM eqEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y6si6196635edm.581.2021.09.12.19.12.24; Sun, 12 Sep 2021 19:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9421C68A778; Mon, 13 Sep 2021 05:12:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg587.qq.com (smtpbg128.qq.com [106.55.201.39]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 51A4D68A778 for ; Mon, 13 Sep 2021 05:12:12 +0300 (EEST) X-QQ-mid: bizesmtp42t1631499126t4og6yf3 Received: from localhost (unknown [103.107.216.230]) by esmtp6.qq.com (ESMTP) with id ; Mon, 13 Sep 2021 10:12:05 +0800 (CST) X-QQ-SSF: 01100000002000Z0Z000B00A0000000 X-QQ-FEAT: HD8feWtqLLMkj56W98BNZb7ad3V4WWKULXzMDA8mSloVE+fXpR4G7JvVBrF6W PEFDGzlTCqRohzm3HWxwlLROEyf7FihqHDXSsKgH6N0d77o2tGGr3gQcubSVEUHtqE+csnR pffebifEcBWoLB0QW66sxZL2GBarSMZ5TeruMxsSjD0EkqdttySDMqSxuAZctskptJXkgs2 TXo5y8aM3fUY84dVsSxLfI10oCqCieKAEcRimCU22Xq6V0lOQw+RPTDvGVGNHy4lBODrfVH km0PCeXC9jUWhSXfeOReKPI8NQZvcjEXbAs5Ox0qaMA3jq X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Mon, 13 Sep 2021 10:12:04 +0800 Message-Id: <20210913021204.22138-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgspam:qybgspam5 Subject: [FFmpeg-devel] [PATCH] avformat/hlsenc: remove unnecessary http/https shutdown status operate X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 7NsfLJLeBHms there have been get http/https shutdown status in ffurl_shutdown. so unnecessary http/https shutdown status operate. Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;