Skip to content

Commit e521feb

Browse files
committed
wayland: check if we have color representation manager first
before using it
1 parent ed8954e commit e521feb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

video/out/wayland_common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2813,6 +2813,9 @@ static void set_color_management(struct vo_wayland_state *wl)
28132813
static void set_color_representation(struct vo_wayland_state *wl)
28142814
{
28152815
#if HAVE_WAYLAND_PROTOCOLS_1_44
2816+
if (!wl->color_representation_manager)
2817+
return;
2818+
28162819
if (wl->color_representation_surface)
28172820
wp_color_representation_surface_v1_destroy(wl->color_representation_surface);
28182821

0 commit comments

Comments
 (0)