From b20e73e210144b1595a6f361074f2a424bdc3bed Mon Sep 17 00:00:00 2001 From: Aman Karmani Date: Tue, 20 Aug 2024 11:59:59 -0700 Subject: [PATCH] fix typo: cotent -> content --- Sources/KSPlayer/AVPlayer/KSOptions.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/KSPlayer/AVPlayer/KSOptions.swift b/Sources/KSPlayer/AVPlayer/KSOptions.swift index dd30a599..7efdf98f 100644 --- a/Sources/KSPlayer/AVPlayer/KSOptions.swift +++ b/Sources/KSPlayer/AVPlayer/KSOptions.swift @@ -397,7 +397,7 @@ open class KSOptions { } } - open func availableDynamicRange(_ cotentRange: DynamicRange?) -> DynamicRange? { + open func availableDynamicRange(_ contentRange: DynamicRange?) -> DynamicRange? { #if canImport(UIKit) let availableHDRModes = AVPlayer.availableHDRModes if let preferedDynamicRange = destinationDynamicRange { @@ -406,17 +406,17 @@ open class KSOptions { return .sdr } else if availableHDRModes.contains(preferedDynamicRange.hdrMode) { return preferedDynamicRange - } else if let cotentRange, - availableHDRModes.contains(cotentRange.hdrMode) + } else if let contentRange, + availableHDRModes.contains(contentRange.hdrMode) { - return cotentRange + return contentRange } else if preferedDynamicRange != .sdr { // trying update to HDR mode return availableHDRModes.dynamicRange } } - return cotentRange + return contentRange #else - return destinationDynamicRange ?? cotentRange + return destinationDynamicRange ?? contentRange #endif }