mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
Gate the macOS only functions
This commit is contained in:
parent
384134fd25
commit
c69e9d8f2c
2 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
|||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
|
|
@ -437,6 +438,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
}
|
||||
}
|
||||
|
||||
[SupportedOSPlatform("macos")]
|
||||
public bool CheckIsVideoToolboxAv1DecodeAvailable()
|
||||
{
|
||||
return ApplePlatformHelper.HasAv1HardwareAccel(_logger);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue