Fix properties access

This commit is contained in:
Arkadiusz Fal 2023-06-07 23:51:17 +02:00
parent 47d68d7948
commit 59e5fcb37d

View File

@ -488,7 +488,7 @@ final class AVPlayerBackend: PlayerBackend {
if self.model.activeBackend == .appleAVPlayer, if self.model.activeBackend == .appleAVPlayer,
self.isAutoplaying(playerItem) self.isAutoplaying(playerItem)
{ {
if model.aspectRatio != aspectRatio { if self.model.aspectRatio != self.aspectRatio {
self.model.updateAspectRatio() self.model.updateAspectRatio()
} }
@ -644,7 +644,7 @@ final class AVPlayerBackend: PlayerBackend {
self.model.objectWillChange.send() self.model.objectWillChange.send()
if player.rate != Float(self.model.currentRate) { if player.rate != Float(self.model.currentRate) {
if model.avPlayerUsesSystemControls { if self.model.avPlayerUsesSystemControls {
self.model.currentRate = Double(player.rate) self.model.currentRate = Double(player.rate)
} else { } else {
player.rate = Float(self.model.currentRate) player.rate = Float(self.model.currentRate)