]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/idet: remove unecessary poll_frame callback.
authorClément Bœsch <ubitux@gmail.com>
Wed, 26 Dec 2012 01:33:26 +0000 (02:33 +0100)
committerClément Bœsch <ubitux@gmail.com>
Wed, 26 Dec 2012 16:17:36 +0000 (17:17 +0100)
libavfilter/vf_idet.c

index e56cff4ae8904d4ede77a90cb63019b240e40796..6bc45d11036db44564acdc015227820a61c54e0e 100644 (file)
@@ -207,23 +207,6 @@ static int request_frame(AVFilterLink *link)
     return 0;
 }
 
-static int poll_frame(AVFilterLink *link)
-{
-    IDETContext *idet = link->src->priv;
-    int ret, val;
-
-    val = ff_poll_frame(link->src->inputs[0]);
-
-    if (val >= 1 && !idet->next) { //FIXME change API to not requre this red tape
-        if ((ret = ff_request_frame(link->src->inputs[0])) < 0)
-            return ret;
-        val = ff_poll_frame(link->src->inputs[0]);
-    }
-    assert(idet->next || !val);
-
-    return val;
-}
-
 static av_cold void uninit(AVFilterContext *ctx)
 {
     IDETContext *idet = ctx->priv;
@@ -311,7 +294,6 @@ static const AVFilterPad idet_outputs[] = {
         .name          = "default",
         .type          = AVMEDIA_TYPE_VIDEO,
         .rej_perms     = AV_PERM_WRITE,
-        .poll_frame    = poll_frame,
         .request_frame = request_frame,
     },
     { NULL }