Skip to content

Commit

Permalink
Fix variable initialization in captionTask
Browse files Browse the repository at this point in the history
  • Loading branch information
jkim2492 committed Feb 4, 2023
1 parent 1ee4ef8 commit 305ac54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/captionTask.brs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ function parseVTT(text)
lines = text.tokenize(Chr(0))[0]
lines = lines.tokenize(Chr(10))
size = lines.count()
for i = 2 to size - 1
curStart = 0
curEnd = 0
for i = 0 to size - 1
if isTime(lines[i])
curStart = ms (lines[i].left(12))
curEnd = ms(lines[i].mid(17, 12))
Expand Down
2 changes: 1 addition & 1 deletion source/Main.brs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sub Main (args as dynamic) as void
if filename.count() > 0
filename = filename[1]
ext = right(filename, 4)
APIRequest("FallbackFont/Fonts/" + filename).gettofile("tmp:/font" + ext)
APIRequest("FallbackFont/Fonts/" + filename).asyncgettofile("tmp:/font" + ext)
end if

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

0 comments on commit 305ac54

Please sign in to comment.