diff options
author | wm4 <wm4@nowhere> | 2014-10-12 20:25:25 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-12 20:25:25 +0200 |
commit | 385e1ccbce6b43c52614345e6f2e7dda6cdcd108 (patch) | |
tree | aab07b59cf7744b0be5887353b892de4309af693 /video | |
parent | 7b0c58ab498f647c6f623c807eec883e1eda9c57 (diff) | |
download | mpv-385e1ccbce6b43c52614345e6f2e7dda6cdcd108.tar.bz2 mpv-385e1ccbce6b43c52614345e6f2e7dda6cdcd108.tar.xz |
vf_vapoursynth: don't error if invoke() doesn't return a clip
Not all functions are for creating filters. Consider for example
LoadPlugin.
Diffstat (limited to 'video')
-rw-r--r-- | video/filter/vf_vapoursynth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index 1e17c4fb43..c09563596d 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -930,9 +930,8 @@ static int l_invoke(lua_State *L) int err2 = 0; VSNodeRef *node = vsapi->propGetNode(r, "clip", 0, &err2); MP_TARRAY_APPEND(p, p->gc_noderef, p->num_gc_noderef, node); - if (!node) - luaL_error(L, "invoke() didn't return clip (error %d)", err2); - lua_pushlightuserdata(L, node); + if (node) + lua_pushlightuserdata(L, node); return 1; } |