Skip to content

Commit

Permalink
Minor code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
1hitsong committed Dec 27, 2024
1 parent ef2c102 commit 0905388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/video/VideoPlayerView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ sub ReportPlayback(state = "update" as string)
m.bufferCheckTimer.duration = 30
end if

if (state = "stop" or state = "finished") and m.originalClosedCaptionState <> invalid
if inArray(["stop", "finished"], state) and isValid(m.originalClosedCaptionState)
m.top.globalCaptionMode = m.originalClosedCaptionState
m.originalClosedCaptionState = invalid
end if
Expand Down

0 comments on commit 0905388

Please sign in to comment.