prep for leadin limit and dont over seek
This commit is contained in:
parent
d2753a909d
commit
39153916d2
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue