Re-apply HA fork patches on upstream v12.0 #3

Merged
benvin merged 2139 commits from benvin/rebase-v12 into main 2026-09-12 12:48:36 +10:00
2 changed files with 19 additions and 1 deletions
Showing only changes of commit 0022508889 - Show all commits
@@ -18,7 +18,7 @@ public static partial class ApplePlatformHelper
{
private static readonly string[] _av1DecodeBlacklistedCpuClass = ["M1", "M2"];
private static string GetSysctlValue(string name)
internal static string GetSysctlValue(string name)
{
nuint length = 0;
// Get length of the value
@@ -0,0 +1,18 @@
using System;
using System.Runtime.Versioning;
using MediaBrowser.MediaEncoding.Encoder;
using Xunit;
namespace Jellyfin.MediaEncoding.Tests;
[SupportedOSPlatform("macos")]
public class ApplePlatformHelperTests
{
[Fact]
public void GetSysctlValue_CpuBrand_NotEmpty()
{
Assert.SkipUnless(OperatingSystem.IsMacOS(), "macOS-only test");
Assert.NotEmpty(ApplePlatformHelper.GetSysctlValue("machdep.cpu.brand_string"));
}
}