vf: fix filter initialization error check

vf_open returns 0 on error, 1 on success. Oops. Accidentally broken
with 6629a95.
This commit is contained in:
wm4 2013-09-20 14:00:19 +02:00
parent 912f609403
commit 6c28524e0f
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ static struct vf_instance *vf_open(struct MPOpts *opts, vf_instance_t *next,
goto error; goto error;
vf->priv = priv; vf->priv = priv;
int retcode = vf->info->vf_open(vf, (char *)args); int retcode = vf->info->vf_open(vf, (char *)args);
if (retcode < 0) if (retcode < 1)
goto error; goto error;
return vf; return vf;