Change aspect ratio handling with MPV

This commit is contained in:
Arkadiusz Fal 2022-09-01 18:55:38 +02:00
parent 418dae9dbe
commit 6643208579

View File

@ -47,7 +47,6 @@ final class MPVBackend: PlayerBackend {
networkStateTimer.start()
if isPlaying {
model.updateAspectRatio()
startClientUpdates()
} else {
stopControlsUpdates()
@ -410,6 +409,9 @@ final class MPVBackend: PlayerBackend {
isSeeking = false
networkStateTimer.start()
case MPV_EVENT_VIDEO_RECONFIG:
model.updateAspectRatio()
case MPV_EVENT_SEEK:
isSeeking = true