From fadffca69fa7e01edfb32b9d8deb38533d54e184 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 29 Mar 2022 17:31:27 +0200 Subject: [PATCH] Fix optional --- Model/Player/Backends/MPVBackend.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Player/Backends/MPVBackend.swift b/Model/Player/Backends/MPVBackend.swift index 287f38a5..8d218831 100644 --- a/Model/Player/Backends/MPVBackend.swift +++ b/Model/Player/Backends/MPVBackend.swift @@ -255,7 +255,7 @@ final class MPVBackend: PlayerBackend { private func updateControlsIsPlaying() { DispatchQueue.main.async { [weak self] in - self?.controls.isPlaying = self?.isPlaying ?? false + self?.controls?.isPlaying = self?.isPlaying ?? false } }