From e0f043c35ca169cc389c6c0107c2b046283f8418 Mon Sep 17 00:00:00 2001 From: Jimi Date: Mon, 16 Dec 2024 06:23:27 -0700 Subject: [PATCH] Fix potential race condition --- components/video/VideoPlayerView.bs | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/video/VideoPlayerView.bs b/components/video/VideoPlayerView.bs index fa788ee21..c92fb612f 100644 --- a/components/video/VideoPlayerView.bs +++ b/components/video/VideoPlayerView.bs @@ -367,7 +367,6 @@ sub onSubtitleChange() m.top.control = VideoControl.STOP m.LoadMetaDataTask.selectedSubtitleIndex = m.top.SelectedSubtitle - m.LoadMetaDataTask.selectedAudioStreamIndex = m.top.audioIndex m.LoadMetaDataTask.itemId = m.top.id m.LoadMetaDataTask.observeField("content", "onVideoContentLoaded") m.LoadMetaDataTask.control = TaskControl.RUN @@ -383,7 +382,6 @@ sub onAudioIndexChange() m.top.control = VideoControl.STOP - m.LoadMetaDataTask.selectedSubtitleIndex = m.top.SelectedSubtitle m.LoadMetaDataTask.selectedAudioStreamIndex = m.top.audioIndex m.LoadMetaDataTask.itemId = m.top.id m.LoadMetaDataTask.observeField("content", "onVideoContentLoaded")