From patchwork Mon Jul 17 14:19:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas George X-Patchwork-Id: 4332 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp209235vsb; Mon, 17 Jul 2017 07:20:09 -0700 (PDT) X-Received: by 10.28.232.29 with SMTP id f29mr4821934wmh.55.1500301209126; Mon, 17 Jul 2017 07:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500301209; cv=none; d=google.com; s=arc-20160816; b=e7fry5dM1A2P6Sgm49jbHLJFREenhT+LsVxxl+sU5J0fFaoxxFpwzgnY///dWj0NL/ y0vA5sQBaPyvtct/0h4YZiO+sFVn14miCMT9mYoJ02je/wFsgfzVfOBbePYUbQh1lNy4 y7lceoTpSA+fTovTvY9hIuLe/nebAFROcVA/ep/IPciyqk6Lp2wwYfDSBmJ1hm9yhUy3 K8BGEPgdfzm72XCOhuxSncg8pY2wteHacseplXl8VSZVb2luXlDJMhBpcmMhWUYlnpci XO71nE9hKKLgdW7+h9rHYekvzt/xcKCExIOn1VLQ5p7ods0xwyLjPzVVcuwfW9qJBrKf qNvA== 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: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=iYTixlQiJkDjiciL2OeWV4EgdJonDOG3C0b8dMFaLkA=; b=luRhjwFjsgPl/WHPJgQYzU9lwL52vOuqz17VSsPlkl//KzgKOdZuiv6GeWu/JbJzMR xtyT/x7i+yF7KlVUtcI5P/L06mPc+t9xHPFXVrz+X8MN9hbkI3ClNL0wV4QrA893uFHz Nabfk4Nt23yeJ+EPYRRnY1IoDKi28JHHW3bxw666q2UWUz7Bp2o6icPPF3pt/VklFzRK A2C8KstkBdh6Vu0va9Y/ztRmM0I/vNi4eku9MZgnVdagOkLkujvI4la8JeX1xRNiEqZc gfPXPjFNI/dGhE03h5arVKGjWUqCSfTtrdaG4/pV8+gnmos9go8dJC1N/NAC7IlsDuOA 5anw== 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 p63si2882724wrc.257.2017.07.17.07.20.08; Mon, 17 Jul 2017 07:20:09 -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 4B9E1689CCD; Mon, 17 Jul 2017 17:19:31 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D9C6B689BD3 for ; Mon, 17 Jul 2017 17:19:23 +0300 (EEST) Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id v6HEJUXU039895 for ; Mon, 17 Jul 2017 16:19:30 +0200 (CEST) Received: by phare.normalesup.org (Postfix, from userid 1001) id 36AA8E00D0; Mon, 17 Jul 2017 16:19:30 +0200 (CEST) From: Nicolas George To: ffmpeg-devel@ffmpeg.org Date: Mon, 17 Jul 2017 16:19:23 +0200 Message-Id: <20170717141926.7442-4-george@nsup.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170717141926.7442-1-george@nsup.org> References: <20170717141926.7442-1-george@nsup.org> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef2.ens.fr [129.199.96.32]); Mon, 17 Jul 2017 16:19:30 +0200 (CEST) Subject: [FFmpeg-devel] [PATCH 4/7] lavfi: make FFERROR_NOT_READY available to filters. 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" I am not entirely sure that this return code is useful, but having and using it makes no harm. Signed-off-by: Nicolas George --- libavfilter/avfilter.c | 2 -- libavfilter/filters.h | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index e60b0247bc..185ba8df00 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -1304,8 +1304,6 @@ static int forward_status_change(AVFilterContext *filter, AVFilterLink *in) return 0; } -#define FFERROR_NOT_READY FFERRTAG('N','R','D','Y') - static int ff_filter_activate_default(AVFilterContext *filter) { unsigned i; diff --git a/libavfilter/filters.h b/libavfilter/filters.h index 2c78d60e62..370d99b38b 100644 --- a/libavfilter/filters.h +++ b/libavfilter/filters.h @@ -28,6 +28,11 @@ #include "avfilter.h" /** + * Special return code when activate() did not do anything. + */ +#define FFERROR_NOT_READY FFERRTAG('N','R','D','Y') + +/** * Mark a filter ready and schedule it for activation. * * This is automatically done when something happens to the filter (queued