TOOLS/lua/autocrop.lua: don't error if hwdec-current is nil

hwdec-current can be either "no" or nil.

Fixes #16739.
This commit is contained in:
Guido Cella
2025-08-29 14:48:23 +02:00
committed by Kacper Michajłow
parent 42fd091e47
commit efb70d7f27
+1 -1
View File
@@ -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")