From a20d429bc19018f0a6bb52309ca0d6df6f7c5229 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 11 Oct 2025 11:41:28 -0500 Subject: [PATCH] Remove usage of deprecated Metal API --- app/streaming/video/ffmpeg-renderers/vt_base.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/streaming/video/ffmpeg-renderers/vt_base.mm b/app/streaming/video/ffmpeg-renderers/vt_base.mm index e3b928f8..57a06351 100644 --- a/app/streaming/video/ffmpeg-renderers/vt_base.mm +++ b/app/streaming/video/ffmpeg-renderers/vt_base.mm @@ -30,7 +30,7 @@ bool VTBaseRenderer::checkDecoderCapabilities(id device, PDECODER_PAR if (params->videoFormat == VIDEO_FORMAT_H265_MAIN10) { // Exclude all GPUs earlier than macOSGPUFamily2 // https://developer.apple.com/documentation/metal/mtlfeatureset/mtlfeatureset_macos_gpufamily2_v1 - if ([device supportsFeatureSet:MTLFeatureSet_macOS_GPUFamily2_v1]) { + if ([device supportsFamily:MTLGPUFamilyMac2]) { if ([device.name containsString:@"Intel"]) { // 500-series Intel GPUs are Skylake and don't support Main10 hardware decoding if ([device.name containsString:@" 5"]) {