Skip to content

Commit 8477f99

Browse files
authored
Let vpy_source_filter work with VS R55+
1 parent 13e46bd commit 8477f99

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

getnative/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ def plugin_from_identifier(core: vapoursynth.Core, identifier: str) -> Union[Cal
2727
def vpy_source_filter(path):
2828
import runpy
2929
runpy.run_path(path, {}, "__vapoursynth__")
30-
return vapoursynth.get_output(0)
30+
if vapoursynth.core.version_number() < 55:
31+
return vapoursynth.get_output(0)
32+
else:
33+
return vapoursynth.get_output(0)[0]
3134

3235

3336
def get_source_filter(core, imwri, args):

0 commit comments

Comments
 (0)