prep for leadin limit and dont over seek

This commit is contained in:
bitingsock 2017-10-17 17:07:40 -07:00 committed by GitHub
parent d2753a909d
commit 39153916d2
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ function speed_transition(_, sub)
mark = speedup_zone_begin
speedup_zone_end = mark+nextsub
if shouldspeedup then
if skipmode and (nextsub-leadin>=leadin or nextsub==0) and mp.get_property("pause") == "no" then
if nextsub>set_timeout() or nextsub==0 then
if skipmode and mp.get_property("pause") == "no" then
if nextsub>set_timeout()-leadin or nextsub==0 then
mp.command("no-osd seek "..tostring(mp.get_property("demuxer-cache-duration")-leadin).." relative exact")
else
mp.command("no-osd seek "..tostring(nextsub-leadin).." relative exact")