1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-01 23:00:41 +00:00

vf_vapoursynth: don't error if invoke() doesn't return a clip

Not all functions are for creating filters. Consider for example
LoadPlugin.
This commit is contained in:
wm4 2014-10-12 20:25:25 +02:00
parent 7b0c58ab49
commit 385e1ccbce

View File

@ -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;
}