aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/DynamicHlsController.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-07-23 20:54:13 +0200
committerGitHub <noreply@github.com>2021-07-23 20:54:13 +0200
commit5a9bd712b34c0c01e82a9ce6c7c1e273044e6986 (patch)
treea3fd41ac7bfb1949d25c8c0712b4e8d6d13e3c09 /Jellyfin.Api/Controllers/DynamicHlsController.cs
parent0e2a6f8216e0a675b43cf2919fb1d57b46f14972 (diff)
parent8528e9bddb4c2dd9e1e3294649e39c7ec609bdf5 (diff)
Merge pull request #6296 from Bond-009/oscheck
Improve platform checks
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/DynamicHlsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs
index fc1e4dced..35435b007 100644
--- a/Jellyfin.Api/Controllers/DynamicHlsController.cs
+++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs
@@ -1380,7 +1380,7 @@ namespace Jellyfin.Api.Controllers
}
else if (string.Equals(segmentFormat, "mp4", StringComparison.OrdinalIgnoreCase))
{
- var outputFmp4HeaderArg = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) switch
+ var outputFmp4HeaderArg = OperatingSystem.IsWindows() switch
{
// on Windows, the path of fmp4 header file needs to be configured
true => " -hls_fmp4_init_filename \"" + outputPrefix + "-1" + outputExtension + "\"",