summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2016-09-08 23:12:19 +0200
committerRobin Gareus <robin@gareus.org>2016-09-12 12:03:16 +0200
commitcf0d06c13728aadbbe11884c84bb19a2df7354ad (patch)
tree03948cfd98973f059ad2ca988c9bf5ecd40148f0 /scripts
parent9d927b54c178a90cc65eeffb01fe51ea6c3bba6a (diff)
Cleaned up messed indents (tabs vs. spaces)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/export_mp4chaps.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/export_mp4chaps.lua b/scripts/export_mp4chaps.lua
index b7ab23189c..4adffe16ce 100644
--- a/scripts/export_mp4chaps.lua
+++ b/scripts/export_mp4chaps.lua
@@ -14,17 +14,17 @@ is not created.
This is a bit more convenient than the export option, as one does not
have to wait for the export.
]],
- license = "GPLv2"
+ license = "GPLv2"
}
function factory (unused_params) return function ()
- fr = Session:frame_rate()
+ fr = Session:frame_rate()
chaps = {}
- for l in Session:locations():list():iter() do
- name = l:name()
- if not l:is_mark() or string.find(name, "^xrun%d*$") then
+ for l in Session:locations():list():iter() do
+ name = l:name()
+ if not l:is_mark() or string.find(name, "^xrun%d*$") then
goto next end
t = l:start()
@@ -37,7 +37,7 @@ function factory (unused_params) return function ()
ms = math.floor(r*1000/fr)
table.insert(chaps, string.format("%02d:%02d:%02d.%03d %s\n", h, m, s, ms, name))
::next::
- end
+ end
if next(chaps) == nil then
goto out end
@@ -49,7 +49,7 @@ function factory (unused_params) return function ()
for i, line in ipairs(chaps) do
file:write(line)
end
- file:close()
+ file:close()
::out::
end end