mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
Fix build for Xcode < 14
This commit is contained in:
parent
f786e94c7b
commit
76deafbd7b
@ -58,6 +58,7 @@ bool VTBaseRenderer::checkDecoderCapabilities(id<MTLDevice> device, PDECODER_PAR
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (params->videoFormat & VIDEO_FORMAT_MASK_AV1) {
|
else if (params->videoFormat & VIDEO_FORMAT_MASK_AV1) {
|
||||||
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 130000
|
||||||
if (!VTIsHardwareDecodeSupported(kCMVideoCodecType_AV1)) {
|
if (!VTIsHardwareDecodeSupported(kCMVideoCodecType_AV1)) {
|
||||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"No HW accelerated AV1 decode via VT");
|
"No HW accelerated AV1 decode via VT");
|
||||||
@ -66,6 +67,11 @@ bool VTBaseRenderer::checkDecoderCapabilities(id<MTLDevice> device, PDECODER_PAR
|
|||||||
|
|
||||||
// 10-bit is part of the Main profile for AV1, so it will always
|
// 10-bit is part of the Main profile for AV1, so it will always
|
||||||
// be present on hardware that supports 8-bit.
|
// be present on hardware that supports 8-bit.
|
||||||
|
#else
|
||||||
|
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
|
"AV1 requires building with Xcode 14 or later");
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user