summaryrefslogtreecommitdiffstats
path: root/TOOLS/lua/autocrop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/lua/autocrop.lua')
-rw-r--r--TOOLS/lua/autocrop.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua
index 5e7a566900..62aee7c89a 100644
--- a/TOOLS/lua/autocrop.lua
+++ b/TOOLS/lua/autocrop.lua
@@ -124,9 +124,11 @@ end
function remove_filter(label)
if options.use_vo_crop and label == labels.crop then
- local ro = mp.get_property_native("video-out-params")
- mp.command(string.format("%s set video-crop 0", command_prefix))
- return ro and ro["crop-w"] and ro["crop-w"] > 0
+ if mp.get_property('video-crop') ~= '0x0' then
+ mp.command(string.format("%s set video-crop 0", command_prefix))
+ return true
+ end
+ return false
end
if is_filter_present(label) then