1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-09 16:37:24 +00:00

vo_gpu_next: fix typo affecting --target-trc option

This commit is contained in:
Tillmann Karras 2022-09-03 01:33:40 +01:00 committed by Leo Izen
parent c4db110c8e
commit 1800891a1d

View File

@ -874,7 +874,7 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
if (opts->target_prim) if (opts->target_prim)
hint.primaries = mp_prim_to_pl(opts->target_prim); hint.primaries = mp_prim_to_pl(opts->target_prim);
if (opts->target_trc) if (opts->target_trc)
hint.transfer = mp_prim_to_pl(opts->target_trc); hint.transfer = mp_trc_to_pl(opts->target_trc);
pl_swapchain_colorspace_hint(p->sw, &hint); pl_swapchain_colorspace_hint(p->sw, &hint);
} else if (!p->target_hint) { } else if (!p->target_hint) {
pl_swapchain_colorspace_hint(p->sw, NULL); pl_swapchain_colorspace_hint(p->sw, NULL);