From 385e1ccbce6b43c52614345e6f2e7dda6cdcd108 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 12 Oct 2014 20:25:25 +0200 Subject: vf_vapoursynth: don't error if invoke() doesn't return a clip Not all functions are for creating filters. Consider for example LoadPlugin. --- video/filter/vf_vapoursynth.c | 5 ++--- 1 file 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; } -- cgit v1.2.3