From b0851c61407adad8f4ba594a0a3f4d01c6bdd2b9 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 6 Aug 2022 16:28:19 +0200 Subject: [PATCH] Minor fixes --- Shared/Player/Controls/OSD/NetworkState.swift | 2 +- Shared/Player/VideoPlayerView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Shared/Player/Controls/OSD/NetworkState.swift b/Shared/Player/Controls/OSD/NetworkState.swift index 4ece6978..b73991af 100644 --- a/Shared/Player/Controls/OSD/NetworkState.swift +++ b/Shared/Player/Controls/OSD/NetworkState.swift @@ -10,7 +10,7 @@ struct NetworkState: View { } var visible: Bool { - player.isPlaying && (model.pausedForCache || player.isSeeking) + player.isPlaying && ((player.activeBackend == .mpv && model.pausedForCache) || player.isSeeking) } } diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index 65601bf5..29170fab 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -97,8 +97,8 @@ struct VideoPlayerView: View { } #if os(iOS) .frame(width: playerWidth.isNil ? nil : Double(playerWidth!), height: playerHeight.isNil ? nil : Double(playerHeight!)) - #endif .ignoresSafeArea(.all, edges: playerEdgesIgnoringSafeArea) + #endif .onChange(of: geometry.size) { size in self.playerSize = size }