mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-16 22:40:53 +08:00
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:
committed by
Kacper Michajłow
parent
42fd091e47
commit
efb70d7f27
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user