ports/multimedia/jellyfin/files/patch-MediaBrowser.MediaEncoding_Encoder_MediaEncoder.cs
Michiel van Baak Jansen 28d47d8ca8 multimedia/jellyfin: Update to 10.9.6 and switch to source build
This patch moves the jellyfin port to build from source using lang/dotnet.
The only binary part is libskia, like it always has been. Building this one from
source is not as easy and will be looked into later.

PR:		279926
Reported by:	michiel@vanbaak.eu (maintainer)
2024-06-26 13:37:06 +02:00

11 lines
722 B
C#

--- MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs.orig 2024-05-17 20:09:34 UTC
+++ MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
@@ -198,7 +198,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
_isPkeyPauseSupported = validator.CheckSupportedRuntimeKey("p pause transcoding");
// Check the Vaapi device vendor
- if (OperatingSystem.IsLinux()
+ if ((OperatingSystem.IsLinux() || OperatingSystem.IsFreeBSD())
&& SupportsHwaccel("vaapi")
&& !string.IsNullOrEmpty(options.VaapiDevice)
&& string.Equals(options.HardwareAccelerationType, "vaapi", StringComparison.OrdinalIgnoreCase))