diff options
author | wm4 <wm4@nowhere> | 2013-09-20 14:00:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-20 21:33:32 +0200 |
commit | dea583410c15d8f46bd93140b58192d47b96bf9d (patch) | |
tree | 393a5cf62904aedbef3fb68d35dd390f42320ea4 | |
parent | 568ab3672a16b4a89a775d2418eea1976ef02a21 (diff) | |
download | mpv-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.c | 2 |
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; |