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
912f609403
commit
6c28524e0f
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue