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 568ab3672a
commit dea583410c
1 changed files with 1 additions and 1 deletions

View File

@ -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;