From patchwork Mon Jul 1 09:43:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 13787 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 8E65D449E41 for ; Mon, 1 Jul 2019 12:44:41 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 718FC68A119; Mon, 1 Jul 2019 12:44:41 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg202.qq.com (smtpbg202.qq.com [184.105.206.29]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3B2DA68033F for ; Mon, 1 Jul 2019 12:44:35 +0300 (EEST) X-QQ-mid: bizesmtp22t1561974242tx9r66py Received: from localhost (unknown [43.247.177.226]) by esmtp6.qq.com (ESMTP) with id ; Mon, 01 Jul 2019 17:44:00 +0800 (CST) X-QQ-SSF: 01100000002000K0ZPF1000A0000000 X-QQ-FEAT: cTSAXDkpFsY4VYXE7KIcR2xtVAGvAnEGbAuBB8eqKpwtiBVjpCAarOKhNZnnk wAZqTd0KgQQDtYMQd9X+hgzgw2GUOAb6NiH2+Co5G+WNxAYhZJM0rci0krSsy+VtL0+mq9o 6IRUa8g0v7bnDYMWIBHpakiteBjHAjzveius67gzix1IgEpf3C44KwQdjz640tZFuV2UPjA uuEJG+GAdnjniYUehaICsRT8eyJTknFpnnGi8Gk83SJ9qa3TapsKHRF/8NnQOOGAbCgbjPy mPRUnsnFH7v3G5MAXWG7UJqb6w1xoghwe9u75DYZroGQe96xj8BgJSrWWMYSpdTo8UXBEa1 zqh4LMg X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Mon, 1 Jul 2019 17:43:59 +0800 Message-Id: <20190701094359.76618-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.17.2 (Apple Git-113) X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/http: change error message from numeric code to string 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/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 5a937994cf..f687dc3ae2 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -1638,7 +1638,7 @@ static int http_shutdown(URLContext *h, int flags) read_ret = ffurl_read(s->hd, buf, sizeof(buf)); s->hd->flags &= ~AVIO_FLAG_NONBLOCK; if (read_ret < 0 && read_ret != AVERROR(EAGAIN)) { - av_log(h, AV_LOG_ERROR, "URL read error: %d\n", read_ret); + av_log(h, AV_LOG_ERROR, "URL read error: %s\n", av_err2str(read_ret)); ret = read_ret; } }