From patchwork Wed Jul 4 14:24:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Barsnick X-Patchwork-Id: 9606 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:104:0:0:0:0:0 with SMTP id c4-v6csp850028jad; Wed, 4 Jul 2018 07:24:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfKxy1B7Y2laE+36w69z4b2e1xzhGkqv5IpAoTqJmVaRgTgeSlWUxLfqrhBA3fhunZ320Nk X-Received: by 2002:a1c:8952:: with SMTP id l79-v6mr1687643wmd.7.1530714291571; Wed, 04 Jul 2018 07:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530714291; cv=none; d=google.com; s=arc-20160816; b=Yny5wIfCmQcdo1mwpsw+dHl1VqjejNoIzMKDPBAw8/EeRre0lREV6IDlsvec9kSDeE A5ZK8V27LRQsngAJywYvzYk0ZFVjz9E3nZL6wgOPfy7HgLNXD3RktOiWghmFoWKxWuqc Fu7vZvPpMpGojptA7uUHc4Dw3Swarf8oF2HLpbdU6cAnWkJLEs9DOhtmqmhfY9c2BL4g fp27BqfvHCYIIFG1BNLqrwXh9uiv8cm014V0FcgBX+bJFaHd0EsAwnMTr4QKVlG7pRyF iKMEzBEecSfjmqmtDsoAcPXAuMczBSF7Mj4Exl5hJ+ogRGBLQr+abPMFB9NPnj+V3AXa JK1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:user-agent:content-disposition:mime-version :message-id:to:from:date:delivered-to:arc-authentication-results; bh=GD2is2R6Ofhs6DfbgbeuN/HpIL6mOB9WnjmflV10D68=; b=oURZpDlhYIb3/2w+F34UIbDatYmMCga5r44TEYRJfrcTK0q8lgD/ymsFJRzzt2LyE5 ok6fO5l3ul2cCqE6D3l6D7GiR45eOeahoPhAGvSmnNKrS1tQXMJl0jXs4TrmIeorfAZr xeBiYC9XxkjCvV4WYBCprwQSPLqrVK7U9R4EWaWEgu/P5xSLcCHKkoA4z7i3ZlM7TV8t BREBbDYk+q0momUNNaAQPMBaHUOYoJdHrsNtZsX3k+aDtk0fme8qlRJUxX4kzRKT52ae /PmGUCUSDLDE7VvwL2tlxZ8p6Jq/yDk7NPGdy9AVJ+dhlhbKbWT4xMAaxt36pT9ynAvt Bbbw== 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 e63-v6si600689wme.91.2018.07.04.07.24.50; Wed, 04 Jul 2018 07:24:51 -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 7233E68AB0F; Wed, 4 Jul 2018 17:24:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DF66968A495 for ; Wed, 4 Jul 2018 17:24:37 +0300 (EEST) Received: from sunshine.barsnick.net ([79.223.46.42]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MBVwM-1fRPZP3dRO-00AVYs; Wed, 04 Jul 2018 16:24:41 +0200 Date: Wed, 4 Jul 2018 16:24:42 +0200 From: Moritz Barsnick To: FFmpeg development discussions and patches Message-ID: <20180704142442.GB5061@sunshine.barsnick.net> MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email 2.14.4 User-Agent: Mutt/1.10.0 (2018-05-17) X-Provags-ID: V03:K1:55uP0bPvzXs/v9bAeufJnqLDCpcS8FgIm6XOjbNWjkgPYQc3Y33 8WYV8+gVoA7jXWJz2atEt8/3ZFgbCO2GlKj5qEi5O/ZB5EpJwq2+WSSKIRJNuFehfynx1aZ Fj7aY79Isun+o57rXra0wb5hlWteCsgI6zUgkWyGc+En/33rpcMy7JndF4m8QEE4iODQ2FC I2dyQr43WTeR/2oc1A57Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:UTWrsfOEvuE=:PBm//cjCNWouCb43iluJ2N Z1AeIjtcZtOIp4SfAJOtligtQEeZQ4XYsSK64p3vqKOIJOHgowRK+H7Alqdp8KYoXCYCmMj1Z pOIcA9KqD0Xcdm6jhlzz+HGLJlV62Uvx6CVIizmnqJCWzgFjy0dSoa61WH/gAiYRRBxh9l/Ig rhrhoUc3U93/eKYWwSn2GSadnc7+xAVpExhA322znmgMgA8Z6F0UZAlEbeGWhGNobO8A/W1dd wSa0+8kVnYSaRUA0GGS484XER3vEYVqAbZG2fsimtjJbzV79DQiuV84RorbFmj040rCZIMYGq mLWxx48rcniDvEINo8ccyUJLf5aGb+ejROk7NU5QDuBDxGxa85tF1vd9eAzd1UkdrCPARL74V woxZhk2g2EaYGXTH0ZlAUt8QFraYWE788MuDYde9B0m70IslpTtrjmGFuYAoC9twso+fLf5pJ x8dSku426X2qCDWw6eNzWkxiM0NJbWDgfs+9nf/O5tDgi5lVlQDAC4LkSY9rOswPonVbP9MGz BgYdM6Nqn+VmDOr2smZPE+GQrz9R4/xJ4KEZx3KO0gP/eTrnDidmFWRsFvFKt7/QoY7gAt5qg 1eeMuENAKnDbW2y6K1+gvlos6Gx6t0nuf7MvguZo5aPwm+qm5v30GU4ApPBdxbo/lxJvfTZ1n GqaD/NfBqfA4ODIWHaDonR+FEmjTjgpqQPwx5GZClPgcDH/x0HaXXZutWf1wR4NDbVgOAKqOX s1shshsRhfkqzzZD5Y7eD/awERUjD9TI0QA+HThW2b8VIKBiO/4Qmm1L7Nw= Subject: [FFmpeg-devel] [PATCH] avutil/hwcontext_qsv: fix log level for session initialization error 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" While the error is not fatal, the message should not be displayed only in verbose logging, as its consequences are of interest. Also fix message formatting (missing space). Signed-off-by: Moritz Barsnick --- Ideally, the returned mfxStatus would be evaluated and printed, but no such function is available (yet). %d perhaps? libavutil/hwcontext_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 250091c4e8..e7ffb42f37 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -474,7 +474,7 @@ static int qsv_init_internal_session(AVHWFramesContext *ctx, err = MFXVideoVPP_Init(*session, &par); if (err != MFX_ERR_NONE) { - av_log(ctx, AV_LOG_VERBOSE, "Error opening the internal VPP session." + av_log(ctx, AV_LOG_WARNING, "Error opening the internal VPP session. " "Surface upload/download will not be possible\n"); MFXClose(*session); *session = NULL;