diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-10 20:15:04 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-13 19:58:20 +0000 |
commit | a177fb6188e735da3536109105ec55a51b3b863c (patch) | |
tree | 3e0951b5e031056b16db31d942ee461d980293ea /meson.build | |
parent | c62b45ec2ab020dad04a95aff3c85aab631b1f32 (diff) | |
download | mpv-a177fb6188e735da3536109105ec55a51b3b863c.tar.bz2 mpv-a177fb6188e735da3536109105ec55a51b3b863c.tar.xz |
vf_vapoursynth: save display resolution as a variable
mpv has a generic method for getting the display resolution, so we can
save it in vf_vapoursynth without too much trouble. Unfortunately, the
resolution won't actually be available in many cases (like my own)
because the windowing backend doesn't actually know it yet. It looks
like at least windows always returns the default monitor (maybe we
should do something similar for x11 and wayland), so there's at least
some value. Of course, this still has a bunch of pitfalls like not being
able to cope with multi monitor setups at all but so does display_fps.
As an aside, the vapoursynth API this uses apparently requires R26 (an
ancient version anyway), so bump the build to compensate for this.
Fixes #11510
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index c49ee8f739..cbeec06d64 100644 --- a/meson.build +++ b/meson.build @@ -747,8 +747,8 @@ if features['uchardet'] dependencies += uchardet endif -vapoursynth = dependency('vapoursynth', version: '>= 24', required: get_option('vapoursynth')) -vapoursynth_script = dependency('vapoursynth-script', version: '>= 23', +vapoursynth = dependency('vapoursynth', version: '>= 26', required: get_option('vapoursynth')) +vapoursynth_script = dependency('vapoursynth-script', version: '>= 26', required: get_option('vapoursynth')) features += {'vapoursynth': vapoursynth.found() and vapoursynth_script.found()} if features['vapoursynth'] |