From dcfb86240ba2499f7774393f5a44654897916c16 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 20 Mar 2022 00:05:09 +0100 Subject: [PATCH] Minor fixes --- Model/Player/Backends/MPVBackend.swift | 1 + Model/Player/Backends/MPVClient.swift | 6 +++--- Shared/Player/VideoDetails.swift | 8 ++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Model/Player/Backends/MPVBackend.swift b/Model/Player/Backends/MPVBackend.swift index 40f9fc08..ac6e81b7 100644 --- a/Model/Player/Backends/MPVBackend.swift +++ b/Model/Player/Backends/MPVBackend.swift @@ -267,6 +267,7 @@ final class MPVBackend: PlayerBackend { case MPV_EVENT_FILE_LOADED: onFileLoaded?() + startClientUpdates() onFileLoaded = nil case MPV_EVENT_UNPAUSE: diff --git a/Model/Player/Backends/MPVClient.swift b/Model/Player/Backends/MPVClient.swift index 067df838..9fe51d6b 100644 --- a/Model/Player/Backends/MPVClient.swift +++ b/Model/Player/Backends/MPVClient.swift @@ -24,9 +24,9 @@ final class MPVClient: ObservableObject { func create(frame: CGRect? = nil) { #if !os(macOS) - if let frame = frame { - glView = MPVOGLView(frame: frame) - } + if let frame = frame { + glView = MPVOGLView(frame: frame) + } #endif mpv = mpv_create() diff --git a/Shared/Player/VideoDetails.swift b/Shared/Player/VideoDetails.swift index 5bc83e3c..2655d65e 100644 --- a/Shared/Player/VideoDetails.swift +++ b/Shared/Player/VideoDetails.swift @@ -97,12 +97,8 @@ struct VideoDetails: View { switch currentPage { case .info: - if player.isLoadingVideo { - PlaceholderProgressView() - } else { - ScrollView(.vertical, showsIndicators: false) { - detailsPage - } + ScrollView(.vertical, showsIndicators: false) { + detailsPage } case .queue: PlayerQueueView(sidebarQueue: $sidebarQueue, fullScreen: $fullScreen)