wayland: don't use functions not available in libplacebo338

Fixes #15120
This commit is contained in:
llyyr 2024-10-18 16:30:01 +05:30 committed by Dudemanguy
parent 5fed98e0ee
commit 7fe12574fa
1 changed files with 2 additions and 2 deletions

View File

@ -2426,10 +2426,10 @@ static int set_colorspace(struct vo_wayland_state *wl)
int xx_transfer = wl->transfer_map[color.transfer];
if (xx_primaries == -1)
MP_VERBOSE(wl, "Compositor does not support color primary: %s\n", pl_color_primaries_name(color.primaries));
MP_VERBOSE(wl, "Compositor does not support color primary: %s\n", m_opt_choice_str(pl_csp_prim_names, color.primaries));
if (xx_transfer == -1)
MP_VERBOSE(wl, "Compositor does not support transfer function: %s\n", pl_color_transfer_name(color.transfer));
MP_VERBOSE(wl, "Compositor does not support transfer function: %s\n", m_opt_choice_str(pl_csp_trc_names, color.transfer));
if (xx_primaries == -1 || xx_transfer == -1) {
wl->unsupported_colorspace = true;