[FFmpeg-cvslog] lavfi/idet: remove unecessary poll_frame callback.

Clément Bœsch git at videolan.org
Wed Dec 26 17:22:20 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Dec 26 02:33:26 2012 +0100| [915d7487d774528a119fbfb11480748e90a29db1] | committer: Clément Bœsch

lavfi/idet: remove unecessary poll_frame callback.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=915d7487d774528a119fbfb11480748e90a29db1
---

 libavfilter/vf_idet.c |   18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index e56cff4..6bc45d1 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -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 }



More information about the ffmpeg-cvslog mailing list