Skip to content

Commit

Permalink
Merge pull request #103 from jimdogx/viv-fix-race-condition
Browse files Browse the repository at this point in the history
Fix potential race condition
  • Loading branch information
1hitsong authored Dec 19, 2024
2 parents b74ab36 + 0688a74 commit a9172b0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/video/VideoPlayerView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit a9172b0

Please sign in to comment.