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
This commit is contained in:
1 parent
8ba0603ffa
commit
4b6ebd79c8
1 file changed
+2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user