From 2958ae39cadbbaeb01277b8456ca2c7a4274cbd7 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 16 May 2013 20:21:36 +0200 Subject: vf_dlopen examples: slightly simply the framestep filter We don't need config() ;) --- TOOLS/vf_dlopen/framestep.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/vf_dlopen/framestep.c b/TOOLS/vf_dlopen/framestep.c index 8c36dc8715..322ca56c1f 100644 --- a/TOOLS/vf_dlopen/framestep.c +++ b/TOOLS/vf_dlopen/framestep.c @@ -41,12 +41,6 @@ typedef struct { int step, pos; } framestep_data_t; -static int framestep_config(struct vf_dlopen_context *ctx) -{ - (void) ctx; - return 1; -} - static int framestep_put_image(struct vf_dlopen_context *ctx) { framestep_data_t *framestep = ctx->priv; @@ -80,7 +74,7 @@ static int framestep_put_image(struct vf_dlopen_context *ctx) void framestep_uninit(struct vf_dlopen_context *ctx) { - (void) ctx; + free(ctx->priv); } int vf_dlopen_getcontext(struct vf_dlopen_context *ctx, int argc, const char **argv) @@ -96,7 +90,6 @@ int vf_dlopen_getcontext(struct vf_dlopen_context *ctx, int argc, const char **a framestep->step = atoi(argv[0]); ctx->priv = framestep; - ctx->config = framestep_config; ctx->put_image = framestep_put_image; ctx->uninit = framestep_uninit; -- cgit v1.2.3