From 0ac07305fbb1d482830131055d20ebfed146e10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 21 Jul 2025 00:15:39 +0200 Subject: [PATCH] vo_gpu_next: override levels even when hinting colorspace Color levels is not part of signaled colorspace. Fixes: b91b71a4445f6a3d11092241e49ff7b257aa37f5 Fixes: #16564 --- video/out/vo_gpu_next.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index e00518b7c8..f8d1189b62 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -827,7 +827,7 @@ static void apply_target_options(struct priv *p, struct pl_frame *target, // Colorspace overrides const struct gl_video_opts *opts = p->opts_cache->opts; // If swapchain returned a value use this, override is used in hint - if (p->output_levels && (!target->repr.levels || !hint)) + if (p->output_levels) target->repr.levels = p->output_levels; if (opts->target_prim && (!target->color.primaries || !hint)) target->color.primaries = opts->target_prim;