summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2019-06-16 01:30:55 +0200
committerJohannes Mueller <github@johannes-mueller.org>2019-06-16 01:30:55 +0200
commit3a2b57771906836b26c93aa7e2055dc2c1047242 (patch)
tree069fc19d60f84217eb26a99fb48574d9a8bbcd15 /scripts
parent79db200bdb9fb168dab9e6933d943161a370ea10 (diff)
Honor the current start position when exporting chapter marks
Diffstat (limited to 'scripts')
-rw-r--r--scripts/export_mp4chaps.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/export_mp4chaps.lua b/scripts/export_mp4chaps.lua
index 98b5b9dc65..61c78c3a2f 100644
--- a/scripts/export_mp4chaps.lua
+++ b/scripts/export_mp4chaps.lua
@@ -27,7 +27,7 @@ function factory (unused_params) return function ()
if not l:is_mark() or string.find(name, "^xrun%d*$") then
goto next end
- local t = l:start()
+ local t = l:start() - Session:current_start_sample()
local h = math.floor(t / (3600*fr))
local r = t - (h*3600*fr)
local m = math.floor(r / (60*fr))