From 4b6ebd79c84fee93ee47090ecbee2eee9fadb961 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sun, 21 Dec 2025 15:00:01 -0600 Subject: [PATCH] wayland: guard wp_color_manager_v1_get_version usage Old wayland protocol versions don't have this. Fixes https://github.com/mpv-player/mpv-build/issues/261 --- video/out/wayland_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 62c9d8204a..d1c99e2d0c 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -3253,6 +3253,7 @@ static int handle_round(int scale, int n) return (scale * n + WAYLAND_SCALE_FACTOR / 2) / WAYLAND_SCALE_FACTOR; } +#if HAVE_WAYLAND_PROTOCOLS_1_41 static bool hdr_metadata_valid(struct vo_wayland_state *wl, struct pl_hdr_metadata *hdr) { // Always return a hard failure if this condition fails. @@ -3277,6 +3278,7 @@ static bool hdr_metadata_valid(struct vo_wayland_state *wl, struct pl_hdr_metada return true; } +#endif static void request_decoration_mode(struct vo_wayland_state *wl, uint32_t mode) {