Disable the HEVC toggle for devices that don't support HEVC

This commit is contained in:
Cameron Gutman
2019-06-05 18:41:30 -07:00
parent a508c6d855
commit 28ff29bb96
2 changed files with 21 additions and 2 deletions

View File

@@ -327,7 +327,7 @@ void ClRumble(unsigned short controllerNumber, unsigned short lowFreqMotor, unsi
// Additionally, iPhone X had a bug which would cause video
// to freeze after a few minutes with HEVC prior to iOS 11.3.
// As a result, we will only use HEVC on iOS 11.3 or later.
if (@available(iOS 11.3, *)) {
if (@available(iOS 11.3, tvOS 11.3, *)) {
_streamConfig.supportsHevc = config.allowHevc && VTIsHardwareDecodeSupported(kCMVideoCodecType_HEVC);
}
#else