Commit: bda6331fc9e3e20f0daf08067b55f79899c231e9
Parent: 2b1091b98fd7d35ee1d2319cec020c59b8094b65
Author: Ren Tatsumoto
Date: Fri, 24 Sep 2021 11:22:38 +0300
move observe
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -806,6 +806,7 @@ local pause_timer = (function()
local check_stop
local set_stop_time = function(time)
stop_time = time
+ mp.observe_property("time-pos", "number", check_stop)
end
local stop = function()
mp.unobserve_property(check_stop)
@@ -828,7 +829,6 @@ end)()
local function sub_stop_at_the_end(sub)
pause_timer.set_stop_time(sub['end'] - 0.050)
- mp.observe_property("time-pos", "number", pause_timer.check_stop)
end
local function sub_replay()