mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-09 09:26:29 +00:00
Add guards around AV1 checks
This commit is contained in:
@@ -200,7 +200,10 @@ BOOL isCustomResolution(CGSize res) {
|
||||
}
|
||||
|
||||
// Disable codec selector segments for unsupported codecs
|
||||
if (!VTIsHardwareDecodeSupported(kCMVideoCodecType_AV1)) {
|
||||
#if defined(__IPHONE_16_0) || defined(__TVOS_16_0)
|
||||
if (!VTIsHardwareDecodeSupported(kCMVideoCodecType_AV1))
|
||||
#endif
|
||||
{
|
||||
[self.codecSelector setEnabled:NO forSegmentAtIndex:2];
|
||||
}
|
||||
if (!VTIsHardwareDecodeSupported(kCMVideoCodecType_HEVC)) {
|
||||
|
||||
Reference in New Issue
Block a user