From patchwork Sat Sep 7 12:39:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 14967 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 30D4C44A6C3 for ; Sat, 7 Sep 2019 15:39:53 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F058A680572; Sat, 7 Sep 2019 15:39:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D43F26803A0 for ; Sat, 7 Sep 2019 15:39:42 +0300 (EEST) X-QQ-mid: bizesmtp22t1567859973tlhso4k8 Received: from localhost (unknown [47.90.47.25]) by esmtp6.qq.com (ESMTP) with id ; Sat, 07 Sep 2019 20:39:32 +0800 (CST) X-QQ-SSF: 01100000002000K0ZQF1000A0000000 X-QQ-FEAT: uNgTm9r7fq1K62pHe40C775opmlZcJy9DbDfRNAtwz+7sqjPZjlx5gTf7iH1y DL8VFIS+naJjr8pAYdutMgkwwIyBSyY+bDwy3PjwqKChj1uw/fAxYsF1M0ALYAsfpJr+PRe 4kCma9D113ofS9V/utC7RqGnbHK+qySU33sCVpIPZ5dZhUJzmEIUSmXC6OMeICYR3MMFJ/E yoaGC1vuIMBA3x2xXpJrpqMzcoUScu/WdGgVLwNcwvQsuKLmcpH08qmNAVqI4zBnZTJlh1x fDMDy7quQ/RFG3WnvKjIhH2jb0yKjXNzIS7zgIf/QHcz89gm/Vatb1YKz1NJ6MCyVGud6fF iyx+PjN X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Sat, 7 Sep 2019 20:39:28 +0800 Message-Id: <20190907123928.10662-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.10.1.382.ga23ca1b.dirty X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign4 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/hlsenc: print warning at the end when upload the last segment failed X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index f881bb9d60..10e90c3839 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2601,6 +2601,8 @@ static int hls_write_trailer(struct AVFormatContext *s) } reflush_dynbuf(vs, &range_length); ret = hlsenc_io_close(s, &vs->out, filename); + if (ret < 0) + av_log(s, AV_LOG_WARNING, "Failed to upload file '%s' at the end.\n", vs->avf->url); } av_free(vs->temp_buffer);