summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2013-05-16 20:21:36 +0200
committerRudolf Polzer <divverent@xonotic.org>2013-05-16 20:21:54 +0200
commit2958ae39cadbbaeb01277b8456ca2c7a4274cbd7 (patch)
tree8c9d68a43f2e4ca540d4e31ec009aceec3aa70dd /TOOLS
parentcfa0515e0e32d9f2d6c9bb7ae95fdcec6749a697 (diff)
downloadmpv-2958ae39cadbbaeb01277b8456ca2c7a4274cbd7.tar.bz2
mpv-2958ae39cadbbaeb01277b8456ca2c7a4274cbd7.tar.xz
vf_dlopen examples: slightly simply the framestep filter
We don't need config() ;)
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/vf_dlopen/framestep.c9
1 files changed, 1 insertions, 8 deletions
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;