diff options
author | Dudemanguy <random342@airmail.cc> | 2023-07-12 22:00:24 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-07-14 14:24:45 +0000 |
commit | 1f683401aa52c03e231532589310415b2449047b (patch) | |
tree | 39339cee4bc5fff4e82db31c764a3bee7d9847b8 /misc | |
parent | 2616b2b11eac26dfbb85926477a652d2a0540ef6 (diff) | |
download | mpv-1f683401aa52c03e231532589310415b2449047b.tar.bz2 mpv-1f683401aa52c03e231532589310415b2449047b.tar.xz |
vo_dmabuf_wayland: error out if compositor doesn't support the format
This was never implemented so in cases where the compositor didn't have
support for the underlying format, the window would just be black and
quite unhelpful. Well it turns out that fixing this is actually really
easy because mpv has reconfig2 which returns the entire mp_image on
every reconfig. We can just use that mp_image to try and obtain the
format and modifier pair and then use that to check against what we know
the compositor supports. If there are any problems, error out
gracefully. Some code duplication with the vaapi/drmprime importers, but
it's probably better to keep these separate. Fixes #11198 and fixes #11664
Diffstat (limited to 'misc')
0 files changed, 0 insertions, 0 deletions