From patchwork Tue Jan 9 01:16:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devin Heitmueller X-Patchwork-Id: 7224 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.78.2 with SMTP id r2csp3350033jaa; Mon, 8 Jan 2018 18:00:44 -0800 (PST) X-Google-Smtp-Source: ACJfBotctGvAMe8IQbAlU0BeS06io7yYmiKYesRU54LPCJ0YUkuFOTZsnaq1x6ZKxcXYIXdSXMoE X-Received: by 10.223.199.6 with SMTP id k6mr12889137wrg.272.1515463244424; Mon, 08 Jan 2018 18:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515463244; cv=none; d=google.com; s=arc-20160816; b=k4vVg9EUDYpZZqR5ChPKOEhyIWYjW+GEJPggF6iONWxZHfMRfPbGMUnJ/1amZYyczm acDJLy6/2w51ypHcNYIgFqS0QpcrdUN6Th1cDDL3Fv7ko2uHyAt94y3htHFY5CInhZjm iBLz1vo4UOnjO/1nOTazJc8I5XP2jkgNAwWD7/Q68pVAT2pGzJn9fwDbCxxxFrae52c9 0mVn8abVvleWsrGIeyQ/Hb6tNHcAxWG4IYhl/jzQB50DUUZuQklbkCmhW5qwVLcH9JtL 6JSmkaBxonJ8brSo1J1ttxumx6rvRuAabCQXS6zNXuBbjiavTmO22t6E8GHMU5SZQC1i A7zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=J8x4Rip2WUOMpvh1lDuHdATBm3ZXlDQrzgfvN+ApNWE=; b=g21sHZTCvGfaCZXcbYx3RURV+2EdLawK7Sx0hl3UeHJFPs8O42wTPEI00OwT5LaTfg 5xwFdauYcQ+TI6QqCS3dhT+Qj1HDxRGHtx0bFlE8dl7nWWKzIe0Rpbt62jysx4qO/olW IMSckOtvzGpUnenEM/UGz003eCF/7zaNoIblcdPAgvpWGroBAkMby5XSdJqB18CCfzUD k0ViLgTBAzCUzOtTiT9PGRBJQPUBl6VEf/P3qr92oLPXBA8o6I/Udy1NiNJNf1fne0n1 789M/8OJHNCNhPLtorEneEBaCVpLKI43j9cnF7s/QPYNLPbmka5v+MWP4A3Dl2UPMDky NUKA== 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 k10si9984446wrg.303.2018.01.08.18.00.43; Mon, 08 Jan 2018 18:00:44 -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 6EBDD689F6C; Tue, 9 Jan 2018 04:00:41 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from was-smtp1.livetimenet.net (50-206-97-56-static.hfc.comcastbusiness.net [50.206.97.56]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D62D1689D45 for ; Tue, 9 Jan 2018 04:00:35 +0200 (EET) Received: by was-smtp1.livetimenet.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.84_2) (envelope-from ) id 1eYiXj-0008Fd-Bh; Mon, 08 Jan 2018 20:17:32 -0500 From: Devin Heitmueller To: ffmpeg-devel@ffmpeg.org Date: Mon, 8 Jan 2018 20:16:57 -0500 Message-Id: <20180109011658.72370-11-dheitmueller@ltnglobal.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20180109011658.72370-1-dheitmueller@ltnglobal.com> References: <20180109011658.72370-1-dheitmueller@ltnglobal.com> X-Spam-Score: -1.9 (-) Subject: [FFmpeg-devel] [PATCH 10/11] decklink: log Blackmagic SDK version compiled against 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: jgreen@ltnglobal.com, Devin Heitmueller MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Add a line to show the SDK version used in the build, if loglevel is set to verbose. This is simply to aid in debugging when building against different SDKs. Signed-off-by: Devin Heitmueller --- libavdevice/decklink_common.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp index e7daa63..b033e63 100644 --- a/libavdevice/decklink_common.cpp +++ b/libavdevice/decklink_common.cpp @@ -448,6 +448,10 @@ int ff_decklink_init_device(AVFormatContext *avctx, const char* name) IDeckLink *dl = NULL; int64_t maxAudioChannels; IDeckLinkIterator *iter = CreateDeckLinkIteratorInstance(); + + av_log(avctx, AV_LOG_VERBOSE, "Using BlackMagic SDK version %s\n", + BLACKMAGIC_DECKLINK_API_VERSION_STRING); + if (!iter) { av_log(avctx, AV_LOG_ERROR, "Could not create DeckLink iterator\n"); return AVERROR_EXTERNAL;