From 664320857970bd1d968b8379032d0fa727d0f770 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 1 Sep 2022 18:55:38 +0200 Subject: [PATCH] Change aspect ratio handling with MPV --- Model/Player/Backends/MPVBackend.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Model/Player/Backends/MPVBackend.swift b/Model/Player/Backends/MPVBackend.swift index e85850ac..b4774b6c 100644 --- a/Model/Player/Backends/MPVBackend.swift +++ b/Model/Player/Backends/MPVBackend.swift @@ -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