summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-20 14:00:19 +0200
committerwm4 <wm4@nowhere>2013-09-20 14:01:00 +0200
commit6c28524e0fb6dcbeab8bed62557669cef7996913 (patch)
treeaabf05996be35fa7028916855516871681187d02 /video
parent912f6094031f65b92e50bdddf74fbea876075d31 (diff)
downloadmpv-6c28524e0fb6dcbeab8bed62557669cef7996913.tar.bz2
mpv-6c28524e0fb6dcbeab8bed62557669cef7996913.tar.xz
vf: fix filter initialization error check
vf_open returns 0 on error, 1 on success. Oops. Accidentally broken with 6629a95.
Diffstat (limited to 'video')
-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 a8469c9203..56ddd32fd8 100644
--- a/video/filter/vf.c
+++ b/video/filter/vf.c
@@ -251,7 +251,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;