summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-08-31 23:52:27 +0200
committerDudemanguy <random342@airmail.cc>2023-09-08 02:27:08 +0000
commitf4dd90aa906643a2b9d5a1c07107224eed914c75 (patch)
tree5b6bfb3f2bc0ec57cd1e8a200fff7a714618e210 /TOOLS
parente234fc0ee5cd6872717fdf3a20c6fc62cf3a747a (diff)
downloadmpv-f4dd90aa906643a2b9d5a1c07107224eed914c75.tar.bz2
mpv-f4dd90aa906643a2b9d5a1c07107224eed914c75.tar.xz
autocrop.lua: don't remove crop on startup/exit
No need to remove/clean crop unlike with filters. Allows using autocrop with auto=false and custom --video-crop.
Diffstat (limited to 'TOOLS')
-rw-r--r--TOOLS/lua/autocrop.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua
index 62aee7c89a..57581cf7a5 100644
--- a/TOOLS/lua/autocrop.lua
+++ b/TOOLS/lua/autocrop.lua
@@ -142,7 +142,10 @@ function cleanup()
-- Remove all existing filters.
for key, value in pairs(labels) do
- remove_filter(value)
+ -- No need to remove initial crop in vo_crop mode
+ if not (options.use_vo_crop and value == labels.crop) then
+ remove_filter(value)
+ end
end
-- Kill all timers.