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:
parent
7b0c58ab49
commit
385e1ccbce
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user