mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
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:
committed by
Kacper Michajłow
parent
5b2bcc55db
commit
b7c92c77a4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user