mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
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.
This commit is contained in:
parent
e234fc0ee5
commit
f4dd90aa90
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user