Minor fixes

This commit is contained in:
Arkadiusz Fal 2023-02-24 18:19:55 +01:00
parent 35d20763fb
commit 8ca499756a
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
## Build 133
## Build 136
* Fixed issue with loading channels in Favorites with Invidious
* Other minor changes and improvements

View File

@ -23,7 +23,7 @@ final class MPVBackend: PlayerBackend {
var video: Video?
var captions: Captions? { didSet {
guard let captions else {
client.removeSubs()
client?.removeSubs()
return
}
addSubTrack(captions.url)
@ -536,10 +536,10 @@ final class MPVBackend: PlayerBackend {
func updateNetworkState() {
DispatchQueue.main.async { [weak self] in
guard let self else { return }
self.networkState.pausedForCache = self.client.pausedForCache
self.networkState.cacheDuration = self.client.cacheDuration
self.networkState.bufferingState = self.client.bufferingState
guard let self, let client = self.client else { return }
self.networkState.pausedForCache = client.pausedForCache
self.networkState.cacheDuration = client.cacheDuration
self.networkState.bufferingState = client.bufferingState
}
if !networkState.needsUpdates {