From b7c92c77a4e5fcd167b42341a59150fd9421ea55 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Wed, 6 Aug 2025 17:10:15 +0200 Subject: [PATCH] vo_gpu_next: allow unsetting LUTs This adds support for unsetting a LUT set by the target-lut or image-lut property by setting the property to an empty string. Previously, this would cause an attempt to read a file named ''. --- 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 17ec69228b..d1985abecc 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -2182,7 +2182,7 @@ static void update_icc_opts(struct priv *p, const struct mp_icc_opts *opts) static void update_lut(struct priv *p, struct user_lut *lut) { - if (!lut->opt) { + if (!lut->opt || !lut->opt[0]) { pl_lut_free(&lut->lut); TA_FREEP(&lut->path); return;