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:
Kacper Michajłow 2023-08-31 23:52:27 +02:00 committed by Dudemanguy
parent e234fc0ee5
commit f4dd90aa90
1 changed files with 4 additions and 1 deletions

View File

@ -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.