summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-16 20:56:00 +0100
committerwm4 <wm4@nowhere>2015-02-16 20:56:00 +0100
commit6e50e59386d3e50801051d96dfddef0ce106f8a1 (patch)
tree31ac3c904e092b2f3be67881ffe34c3a0b05823c /video/filter
parentd34eabe286c46811f0fb1188c789572a57df2b5d (diff)
downloadmpv-6e50e59386d3e50801051d96dfddef0ce106f8a1.tar.bz2
mpv-6e50e59386d3e50801051d96dfddef0ce106f8a1.tar.xz
vf_vapoursynth: replace a hack with a newer VS API function
The new function does exactly what we need. Replaces the old hack, which created the vscore by running an empty script.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_vapoursynth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index 8ae8add8b3..5afee78b17 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -745,7 +745,7 @@ static int drv_vss_load_core(struct vf_instance *vf)
// First load an empty script to get a VSScript, so that we get the vsapi
// and vscore.
- if (vsscript_evaluateScript(&p->se, "", NULL, 0))
+ if (vsscript_createScript(&p->se))
return -1;
p->vsapi = vsscript_getVSApi();
p->vscore = vsscript_getCore(p->se);