Fix crashes

This commit is contained in:
Arkadiusz Fal
2022-12-21 18:13:41 +01:00
parent 6594d5ba95
commit 18cbbd3c90
8 changed files with 26 additions and 17 deletions

View File

@@ -99,10 +99,11 @@ struct OpenURLHandler {
Windows.main.open()
#endif
player.videoBeingOpened = Video(app: accounts.current.app!, videoID: id)
let video = Video(app: accounts.current.app!, videoID: id)
player.videoBeingOpened = video
player
.playerAPI(player.videoBeingOpened!)
.playerAPI(video)?
.video(id)
.load()
.onSuccess { response in