diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-31 23:52:27 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-08 02:27:08 +0000 |
commit | f4dd90aa906643a2b9d5a1c07107224eed914c75 (patch) | |
tree | 5b6bfb3f2bc0ec57cd1e8a200fff7a714618e210 /TOOLS | |
parent | e234fc0ee5cd6872717fdf3a20c6fc62cf3a747a (diff) | |
download | mpv-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.lua | 5 |
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. |