summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-20 14:00:19 +0200
committerwm4 <wm4@nowhere>2013-09-20 21:33:32 +0200
commitdea583410c15d8f46bd93140b58192d47b96bf9d (patch)
tree393a5cf62904aedbef3fb68d35dd390f42320ea4
parent568ab3672a16b4a89a775d2418eea1976ef02a21 (diff)
downloadmpv-dea583410c15d8f46bd93140b58192d47b96bf9d.tar.bz2
mpv-dea583410c15d8f46bd93140b58192d47b96bf9d.tar.xz
vf: fix filter initialization error check
vf_open returns 0 on error, 1 on success. Oops. Accidentally broken with 6629a95.
-rw-r--r--video/filter/vf.c2
1 files changed, 1 insertions, 1 deletions
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;