Skip to content

Commit

Permalink
fix typo: cotent -> content
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Aug 20, 2024
1 parent a4c158c commit b20e73e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/KSPlayer/AVPlayer/KSOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}

Expand Down

0 comments on commit b20e73e

Please sign in to comment.