]> git.sesse.net Git - ffmpeg/commitdiff
lavfi: remove ff_poll_frame().
authorNicolas George <george@nsup.org>
Mon, 2 Dec 2019 15:41:07 +0000 (16:41 +0100)
committerNicolas George <george@nsup.org>
Mon, 23 Dec 2019 12:03:38 +0000 (13:03 +0100)
It is never used.

libavfilter/avfilter.c
libavfilter/internal.h

index 1004a6ee1dc5e63346ef331448ae03f92f5f911f..baafd029e9ef28be55aa81f70d2e5e26749074d3 100644 (file)
@@ -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",
index 1d77808082427836988432cff6625c4178d6b4e0..f98127c442176f939532e1abea10512d0bb182c0 100644 (file)
@@ -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.
  *