mirror of https://github.com/mpv-player/mpv
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,8 +142,11 @@ function cleanup()
|
||||||
|
|
||||||
-- Remove all existing filters.
|
-- Remove all existing filters.
|
||||||
for key, value in pairs(labels) do
|
for key, value in pairs(labels) do
|
||||||
|
-- No need to remove initial crop in vo_crop mode
|
||||||
|
if not (options.use_vo_crop and value == labels.crop) then
|
||||||
remove_filter(value)
|
remove_filter(value)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Kill all timers.
|
-- Kill all timers.
|
||||||
for index, timer in pairs(timers) do
|
for index, timer in pairs(timers) do
|
||||||
|
|
Loading…
Reference in New Issue