From efb70d7f27780bbc7db2ad9a7f2fbf05e610c97e Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Fri, 29 Aug 2025 14:48:23 +0200 Subject: [PATCH] TOOLS/lua/autocrop.lua: don't error if hwdec-current is nil hwdec-current can be either "no" or nil. Fixes #16739. --- TOOLS/lua/autocrop.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua index ba38f487cc..25bdd7297c 100644 --- a/TOOLS/lua/autocrop.lua +++ b/TOOLS/lua/autocrop.lua @@ -205,7 +205,7 @@ local function detect_crop() return end - local hwdec_current = mp.get_property("hwdec-current") + local hwdec_current = mp.get_property("hwdec-current", "no") if hwdec_current:find("-copy$") == nil and hwdec_current ~= "no" and hwdec_current ~= "crystalhd" and hwdec_current ~= "rkmpp" then hwdec_backup = mp.get_property("hwdec")