From bdc83a7e7c0bde9f6f140eddf8fdc58b7ab3dde8 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 21 May 2022 21:38:26 +0200 Subject: [PATCH] Fix #126 --- Model/Player/Backends/MPVBackend.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Player/Backends/MPVBackend.swift b/Model/Player/Backends/MPVBackend.swift index 2c511bba..07531953 100644 --- a/Model/Player/Backends/MPVBackend.swift +++ b/Model/Player/Backends/MPVBackend.swift @@ -73,11 +73,11 @@ final class MPVBackend: PlayerBackend { func bestPlayable(_ streams: [Stream], maxResolution: ResolutionSetting) -> Stream? { streams - .filter { $0.kind == .adaptive && $0.resolution <= maxResolution.value } + .filter { $0.kind != .hls && $0.resolution <= maxResolution.value } .max { lhs, rhs in let predicates: [AreInIncreasingOrder] = [ - { $0.format > $1.format }, - { $0.resolution < $1.resolution } + { $0.resolution < $1.resolution }, + { $0.format > $1.format } ] for predicate in predicates {