diff options
author | wm4 <wm4@nowhere> | 2014-08-11 21:57:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-11 21:57:15 +0200 |
commit | beceb2fedc96ce2f510a542de2ee10417221f731 (patch) | |
tree | dd82529b464df4cf311e32e27915097dd92b3f6e /video | |
parent | bead9766bc4924a5aac593068f21a44315629e0c (diff) | |
download | mpv-beceb2fedc96ce2f510a542de2ee10417221f731.tar.bz2 mpv-beceb2fedc96ce2f510a542de2ee10417221f731.tar.xz |
vf_vapoursynth: print more diagnostics on error
Diffstat (limited to 'video')
-rw-r--r-- | video/filter/vf_vapoursynth.c | 12 |
1 files 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)) { |