summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2013-05-20 06:59:44 +0200
committerRudolf Polzer <divverent@xonotic.org>2013-05-20 06:59:44 +0200
commit5589412b3c37315e13ec95202c6a78fc0760a220 (patch)
treeb1bbb9661397ad7d757b3a6088dd877bc2d56251
parent34e542591bf1f9573548b90c87d8c07f8a353570 (diff)
downloadmpv-5589412b3c37315e13ec95202c6a78fc0760a220.tar.bz2
mpv-5589412b3c37315e13ec95202c6a78fc0760a220.tar.xz
vf_dlopen framestep: step width of 0
This is now defined to mean to never output any frame again (except for the first).
-rw-r--r--TOOLS/vf_dlopen/framestep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/TOOLS/vf_dlopen/framestep.c b/TOOLS/vf_dlopen/framestep.c
index 6440fe3139..531d11b018 100644
--- a/TOOLS/vf_dlopen/framestep.c
+++ b/TOOLS/vf_dlopen/framestep.c
@@ -50,6 +50,8 @@ static int framestep_put_image(struct vf_dlopen_context *ctx)
framestep_data_t *framestep = ctx->priv;
// stepping
+ if (framestep->pos < 0)
+ return 0;
--framestep->pos;
if (framestep->pos >= 0)
return 0;