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 authored and Kacper Michajłow committed 2025-08-29 19:08:29 +02:00
1 parent 42fd091e47
commit efb70d7f27
1 file changed
+1 -1
+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")