Skip to content

Commit

Permalink
when replaying, account for sub delay
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Sep 4, 2021
1 parent c9e4e4f commit ecee8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subs2srs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ end)()

local function sub_replay()
local sub = subs.get_current()
pause_timer.set_stop_time(sub['end'] - 0.050)
pause_timer.set_stop_time(sub['end'] - 0.050 + mp.get_property_native("sub-delay"))
mp.commandv('seek', sub['start'], 'absolute')
mp.set_property("pause", "no")
mp.observe_property("time-pos", "number", pause_timer.check_stop)
Expand Down

0 comments on commit ecee8e5

Please sign in to comment.