From patchwork Wed Oct 2 06:58:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 15457 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 45100448168 for ; Wed, 2 Oct 2019 09:58:58 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 27E34688159; Wed, 2 Oct 2019 09:58:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from qq.com (smtpbg566.qq.com [183.3.255.187]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DE950680373 for ; Wed, 2 Oct 2019 09:58:55 +0300 (EEST) X-QQ-mid: bizesmtp25t1569999498t8vh0x46 Received: from localhost (unknown [47.90.47.25]) by esmtp10.qq.com (ESMTP) with id ; Wed, 02 Oct 2019 14:58:18 +0800 (CST) X-QQ-SSF: 01100000008000K0ZQF1B00A0000000 X-QQ-FEAT: KdN0SWBFoH7pDEgsfzYE8tTmaQFh3uGrPtfj/Q/NW2vv9mjZOuTuxt1boig4K 4/lcOnIjfkhYdjnRlCCCBa8NFitAdI4eD15XkE71KUAqb4O43L+i2dyHvg3RrpxfzbdcsYp s0RWCUGDIO0qwy2jyNJWjJTEJoOIwPFq9JIctMI2qbaDZmMCrvLFl185GLFWInQIt0rlUjF 4xDKipLfUSDDb4nxJJYmZU6E7Cj9evVF8LQNDklLdAZPiK2damSO9J2b3a3nOHF5PMcAxIp QakxUpl2FODjh7TXXvsRrFVAaSNUvJmJPQ1s8htZ0CjeZW X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 Oct 2019 14:58:02 +0800 Message-Id: <20191002065815.30333-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:qybgforeign2 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH v2 01/14] avformat/hlsenc: add logging context to log 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 1f2bdfbe4d..ac46a82704 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -1305,7 +1305,7 @@ static int create_master_playlist(AVFormatContext *s, ret = hlsenc_io_open(s, &hls->m3u8_out, temp_filename, &options); av_dict_free(&options); if (ret < 0) { - av_log(NULL, AV_LOG_ERROR, "Failed to open master play list file '%s'\n", + av_log(s, AV_LOG_ERROR, "Failed to open master play list file '%s'\n", temp_filename); goto fail; } @@ -1344,7 +1344,7 @@ static int create_master_playlist(AVFormatContext *s, m3u8_rel_name = get_relative_url(hls->master_m3u8_url, vs->m3u8_name); if (!m3u8_rel_name) { - av_log(NULL, AV_LOG_ERROR, "Unable to find relative URL\n"); + av_log(s, AV_LOG_ERROR, "Unable to find relative URL\n"); goto fail; } @@ -1358,7 +1358,7 @@ static int create_master_playlist(AVFormatContext *s, } if (!vid_st && !aud_st) { - av_log(NULL, AV_LOG_WARNING, "Media stream not found\n"); + av_log(s, AV_LOG_WARNING, "Media stream not found\n"); continue; } @@ -1399,7 +1399,7 @@ static int create_master_playlist(AVFormatContext *s, } } if (j == hls->nb_ccstreams) - av_log(NULL, AV_LOG_WARNING, "mapping ccgroup %s not found\n", + av_log(s, AV_LOG_WARNING, "mapping ccgroup %s not found\n", vs->ccgroup); }