mirror of https://github.com/mpv-player/mpv
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:
parent
568ab3672a
commit
dea583410c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue