diff options
author | Dudemanguy <random342@airmail.cc> | 2022-05-30 09:19:59 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2022-05-30 19:51:46 +0000 |
commit | 0ec3bd6ba9838c7a1adcb52610dc4a014dc82fff (patch) | |
tree | 7739205c3e0dff1aec36119b86c98047d7dd71dd /video/out/wayland_common.c | |
parent | b1639ee561c7d62a8797bf8700bbec563e78d0c9 (diff) | |
download | mpv-0ec3bd6ba9838c7a1adcb52610dc4a014dc82fff.tar.bz2 mpv-0ec3bd6ba9838c7a1adcb52610dc4a014dc82fff.tar.xz |
wayland: use mp_tag_str not drm_format_string
So it turns out that mpv already has an mp_tag_str which makes a
readable string out of fourccs (drm formats are these).
drm_format_string, on the other hand, has a ton of baggage with having
to check different libdrm versions for certain headers, adding
compile-time defines (because there are no version defines in the libdrm
headers), etc. It's a lot simpler to just use what mpv already has and
it returns what you actually care about: i.e. is this format supported
or not. Fixes https://github.com/mpv-player/mpv-build/issues/184
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r-- | video/out/wayland_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 00b3adaff2..72a699fdd0 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -32,7 +32,6 @@ #include "osdep/timer.h" #include "wayland_common.h" #include "win_state.h" -#include "drm_common.h" // Generated from wayland-protocols #include "generated/wayland/idle-inhibit-unstable-v1.h" @@ -1052,7 +1051,7 @@ static void dmabuf_format(void *data, wl->drm_formats = talloc_realloc(NULL,wl->drm_formats,uint, wl->drm_format_ct_max); } wl->drm_formats[wl->drm_format_ct++] = format; - MP_VERBOSE(wl, "%s available\n", drm_format_string(format)); + MP_VERBOSE(wl, "%s is supported by the compositor.\n", mp_tag_str(format)); } bool vo_wayland_supported_format(struct vo *vo, uint drm_format) { |