From 0905388b93a6bf07283f940164fbadf16e1202c8 Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Fri, 27 Dec 2024 09:35:15 -0500 Subject: [PATCH] Minor code style changes --- components/video/VideoPlayerView.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/video/VideoPlayerView.bs b/components/video/VideoPlayerView.bs index 29809ea9b..c54b245bf 100644 --- a/components/video/VideoPlayerView.bs +++ b/components/video/VideoPlayerView.bs @@ -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