From beceb2fedc96ce2f510a542de2ee10417221f731 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 11 Aug 2014 21:57:15 +0200 Subject: vf_vapoursynth: print more diagnostics on error --- video/filter/vf_vapoursynth.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index 5e104bb49c..c8c9169a06 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -455,8 +455,10 @@ static int reinit_vs(struct vf_instance *vf) goto error; p->vsapi = vsscript_getVSApi(); p->vscore = vsscript_getCore(p->se); - if (!p->vsapi || !p->vscore) + if (!p->vsapi || !p->vscore) { + MP_FATAL(vf, "Could not get vapoursynth API handle.\n"); goto error; + } in = p->vsapi->createMap(); out = p->vsapi->createMap(); @@ -468,8 +470,10 @@ static int reinit_vs(struct vf_instance *vf) infiltFree, fmSerial, 0, vf, p->vscore); int vserr; p->in_node = p->vsapi->propGetNode(out, "clip", 0, &vserr); - if (!p->in_node) + if (!p->in_node) { + MP_FATAL(vf, "Could not get our own input node.\n"); goto error; + } if (p->vsapi->propSetNode(vars, "video_in", p->in_node, 0)) goto error; @@ -481,8 +485,10 @@ static int reinit_vs(struct vf_instance *vf) goto error; } p->out_node = vsscript_getOutput(p->se, 0); - if (!p->out_node) + if (!p->out_node) { + MP_FATAL(vf, "Could not get script output node.\n"); goto error; + } const VSVideoInfo *vi = p->vsapi->getVideoInfo(p->out_node); if (!isConstantFormat(vi)) { -- cgit v1.2.3