diff --git a/speed-transition.lua b/speed-transition.lua index bc12f56..4e78d36 100644 --- a/speed-transition.lua +++ b/speed-transition.lua @@ -38,7 +38,7 @@ function check_position(_, position) if nextsub ~= 0 and position >= (mark+nextsub-leadin) then restore_normalspeed() mp.unobserve_property(check_position) - elseif nextsub == 0 and position >= (mark+set_timeout()) then + elseif nextsub == 0 and position >= (mark+set_timeout()-leadin) then nextsub, _ , mark = check_should_speedup() end end