From patchwork Thu Nov 19 20:51:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 23741 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:c00a:0:0:0:0:0 with SMTP id c10csp638712ybf; Thu, 19 Nov 2020 12:52:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZXNTSzIEOkRbgI/D9E5CsdllmSBzGssx/QO0KaRA4dhsk1JyEJVLDDi8pp4s+wX8MmXZv X-Received: by 2002:a05:600c:2a4b:: with SMTP id x11mr6653445wme.165.1605819153764; Thu, 19 Nov 2020 12:52:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605819153; cv=none; d=google.com; s=arc-20160816; b=EdZO6SMZ5JTE8pCJyWTtYosR3qBCg/NLHGa1KiBBK4HSYVS/F3glHXBzt+dUwx670i VpL91LMSv8Xo+QyF7HzHRuidwaFBLSsONFNr4XckQgUZBx+0inbRHUBTK/4apjFSM8SX W1kWw4vse+62g/45iWqArX37dp0j0HXNI/tPCjXFiuvkLBdk+1P4XjS4pdW2s+5GnDVt bvJSZVystj2X0Z2xkeIdm9YWlJFK+/ONzJPdkeO893KSEOvV+gY2dnejJpzp0KGZVgDX 04N6xwSA8bnR4twnGZC3ypOFOPAN3DBNNic/c+jBSy8s8XO6Pf/u5ZKKKSvj1kcP3ngu MAOQ== 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:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to; bh=T48LEgy2lI1iH0nLSMCRajCOyp5JQXrlIbzT5B/zPU4=; b=Re+AcQDIX/ggkZTrFvzvtIXB8ul9VGG6HKhVRp61kI3KRWCPjz/ilhKz1dvSASjY5t PDCxEYArgPL1Nhqa2cFowy660V1pw/aixghFRbVpGp7e+9pPmkQ7iSLgTlIPXTZ6yC+N HSqynmi3nJ3QCMLZSQ/UGdfJvIBm33pAPF5EhatNUjlaCT2dYbMY28QVkOn7ilXOgLgJ VGDqijBFnmlC8J48zNKIducJvZK7uXNDIln6QAPMdwgoDvO3uS1EOcBvd2iuqvP4KcyQ EaUlZ7hflwjnxD9j+A9OIAju3t+hl0DiaGVz4Z1RnDoYJjp6g7ErU1aoUWPsN3B7bKZI 6GQg== 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 o8si584692wru.318.2020.11.19.12.52.33; Thu, 19 Nov 2020 12:52:33 -0800 (PST) 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 440FC68B8F4; Thu, 19 Nov 2020 22:51:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ACC5C68B903 for ; Thu, 19 Nov 2020 22:51:44 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 36644E4A65; Thu, 19 Nov 2020 21:51:45 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kaqiDe4098oc; Thu, 19 Nov 2020 21:51:43 +0100 (CET) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 59005E4A4A; Thu, 19 Nov 2020 21:51:42 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Thu, 19 Nov 2020 21:51:23 +0100 Message-Id: <20201119205123.21968-6-cus@passwd.hu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201119205123.21968-1-cus@passwd.hu> References: <20201119205123.21968-1-cus@passwd.hu> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/6] fftools/cmdutils: also print warnings when using -sinks and -sources 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: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: KOGvyEimleZg Content-Length: 1569 Signed-off-by: Marton Balint --- fftools/cmdutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 88fdbeaf1e..4eb68d2201 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -2308,7 +2308,7 @@ int show_sources(void *optctx, const char *opt, const char *arg) int ret = 0; int error_level = av_log_get_level(); - av_log_set_level(AV_LOG_ERROR); + av_log_set_level(AV_LOG_WARNING); if ((ret = show_sinks_sources_parse_arg(arg, &dev, &opts)) < 0) goto fail; @@ -2346,7 +2346,7 @@ int show_sinks(void *optctx, const char *opt, const char *arg) int ret = 0; int error_level = av_log_get_level(); - av_log_set_level(AV_LOG_ERROR); + av_log_set_level(AV_LOG_WARNING); if ((ret = show_sinks_sources_parse_arg(arg, &dev, &opts)) < 0) goto fail;