From patchwork Mon Dec 2 16:40:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas George X-Patchwork-Id: 16537 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 36D7644A89F for ; Mon, 2 Dec 2019 18:41:07 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1FDF468B02B; Mon, 2 Dec 2019 18:41:07 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from nef.ens.fr (nef2.ens.fr [129.199.96.40]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2B2D468AB43 for ; Mon, 2 Dec 2019 18:40:59 +0200 (EET) X-ENS-nef-client: 129.199.129.80 Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef.ens.fr (8.14.4/1.01.28121999) with ESMTP id xB2Gewu8030695 for ; Mon, 2 Dec 2019 17:40:58 +0100 Received: by phare.normalesup.org (Postfix, from userid 1001) id 4C8F2EB5B7; Mon, 2 Dec 2019 17:40:58 +0100 (CET) From: Nicolas George To: ffmpeg-devel@ffmpeg.org Date: Mon, 2 Dec 2019 17:40:53 +0100 Message-Id: <20191202164056.15926-2-george@nsup.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191202164056.15926-1-george@nsup.org> References: <20191202164056.15926-1-george@nsup.org> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef.ens.fr [129.199.96.32]); Mon, 02 Dec 2019 17:40:58 +0100 (CET) Subject: [FFmpeg-devel] [PATCH 2/5] lavfi: remove ff_poll_frame(). 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" It is never used. Signed-off-by: Nicolas George --- libavfilter/avfilter.c | 18 ------------------ libavfilter/internal.h | 9 --------- 2 files changed, 27 deletions(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 1004a6ee1d..baafd029e9 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -467,24 +467,6 @@ static int ff_request_frame_to_filter(AVFilterLink *link) return ret; } -int ff_poll_frame(AVFilterLink *link) -{ - int i, min = INT_MAX; - - if (link->srcpad->poll_frame) - return link->srcpad->poll_frame(link); - - for (i = 0; i < link->src->nb_inputs; i++) { - int val; - if (!link->src->inputs[i]) - return AVERROR(EINVAL); - val = ff_poll_frame(link->src->inputs[i]); - min = FFMIN(min, val); - } - - return min; -} - static const char *const var_names[] = { "t", "n", diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 1d77808082..f98127c442 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -289,15 +289,6 @@ static inline int ff_insert_outpad(AVFilterContext *f, unsigned index, &f->output_pads, &f->outputs, p); } -/** - * Poll a frame from the filter chain. - * - * @param link the input link - * @return the number of immediately available frames, a negative - * number in case of error - */ -int ff_poll_frame(AVFilterLink *link); - /** * Request an input frame from the filter at the other end of the link. *