1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-31 12:11:52 +00:00

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.
This commit is contained in:
wm4 2015-02-16 20:56:00 +01:00
parent d34eabe286
commit 6e50e59386
3 changed files with 3 additions and 3 deletions

View File

@ -860,7 +860,7 @@ test_lua "lua5.2 >= 5.2.0" # debian
test "$_lua" != yes && check_yes_no no LUA
if ! ( $_pkg_config 'vapoursynth >= 23' ) ; then
if ! ( $_pkg_config 'vapoursynth >= 24' ) ; then
_vapoursynth=no
_vapoursynth_lazy=no
fi

View File

@ -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);

View File

@ -350,7 +350,7 @@ If you really mean to compile without libass support use --disable-libass."
}, {
'name': 'vapoursynth-core',
'desc': 'VapourSynth filter bridge (core)',
'func': check_pkg_config('vapoursynth >= 23'),
'func': check_pkg_config('vapoursynth >= 24'),
}, {
'name': '--vapoursynth',
'desc': 'VapourSynth filter bridge (Python)',