Skip to content

Commit 305ac54

Browse files
committed
Fix variable initialization in captionTask
1 parent 1ee4ef8 commit 305ac54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/captionTask.brs

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ function parseVTT(text)
122122
lines = text.tokenize(Chr(0))[0]
123123
lines = lines.tokenize(Chr(10))
124124
size = lines.count()
125-
for i = 2 to size - 1
125+
curStart = 0
126+
curEnd = 0
127+
for i = 0 to size - 1
126128
if isTime(lines[i])
127129
curStart = ms (lines[i].left(12))
128130
curEnd = ms(lines[i].mid(17, 12))

source/Main.brs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sub Main (args as dynamic) as void
4848
if filename.count() > 0
4949
filename = filename[1]
5050
ext = right(filename, 4)
51-
APIRequest("FallbackFont/Fonts/" + filename).gettofile("tmp:/font" + ext)
51+
APIRequest("FallbackFont/Fonts/" + filename).asyncgettofile("tmp:/font" + ext)
5252
end if
5353

5454
' Only show the Whats New popup the first time a user runs a new client version.

0 commit comments

Comments
 (0)