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 ''.
This commit is contained in:
LordMZTE
2025-08-06 18:04:05 +02:00
committed by Kacper Michajłow
parent 5b2bcc55db
commit b7c92c77a4
+1 -1
View File
@@ -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;