Commit: 4f92f6d4ee5e28f832d474fef22da19a6fc64c8b Parent: 2d2933b1ab148093594a0148c2de80ce43b4ad7a Author: Ren Tatsumoto Date: Tue, 23 Feb 2021 03:22:07 +0300 respect audio-delay property Diffstat:
M | subs2srs.lua | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua @@ -1128,11 +1128,11 @@ subs = { subs.get_current = function() local sub_text = mp.get_property("sub-text") if not is_empty(sub_text) then - local sub_delay = mp.get_property_native("sub-delay") + local delay = mp.get_property_native("sub-delay") - mp.get_property_native("audio-delay") return Subtitle:new { ['text'] = sub_text, - ['start'] = mp.get_property_number("sub-start") + sub_delay, - ['end'] = mp.get_property_number("sub-end") + sub_delay + ['start'] = mp.get_property_number("sub-start") + delay, + ['end'] = mp.get_property_number("sub-end") + delay } end return nil