From dea583410c15d8f46bd93140b58192d47b96bf9d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Sep 2013 14:00:19 +0200 Subject: vf: fix filter initialization error check vf_open returns 0 on error, 1 on success. Oops. Accidentally broken with 6629a95. --- video/filter/vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/filter/vf.c b/video/filter/vf.c index f074c2059b..60fa94796a 100644 --- a/video/filter/vf.c +++ b/video/filter/vf.c @@ -250,7 +250,7 @@ static struct vf_instance *vf_open(struct MPOpts *opts, vf_instance_t *next, goto error; vf->priv = priv; int retcode = vf->info->vf_open(vf, (char *)args); - if (retcode < 0) + if (retcode < 1) goto error; return vf; -- cgit v1.2.3