Merge pull request #807 from yattee/more-robust-resolution-handling

more robust resolution handling
This commit is contained in:
Arkadiusz Fal
2024-09-11 09:29:00 +02:00
committed by GitHub
7 changed files with 222 additions and 273 deletions

View File

@@ -315,7 +315,9 @@ struct QualityProfileForm: View {
func isResolutionDisabled(_ resolution: ResolutionSetting) -> Bool {
guard backend == .appleAVPlayer else { return false }
return resolution.value > .hd720p30
let hd720p30 = Stream.Resolution.predefined(.hd720p30)
return resolution.value > hd720p30
}
func initializeForm() {