aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/VideoHlsController.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/VideoHlsController.cs
parent0e2a6f8216e0a675b43cf2919fb1d57b46f14972 (diff)
parent8528e9bddb4c2dd9e1e3294649e39c7ec609bdf5 (diff)
Merge pull request #6296 from Bond-009/oscheck
Improve platform checks
Diffstat (limited to 'Jellyfin.Api/Controllers/VideoHlsController.cs')
-rw-r--r--Jellyfin.Api/Controllers/VideoHlsController.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/VideoHlsController.cs b/Jellyfin.Api/Controllers/VideoHlsController.cs
index 4e7bb695a..5c941b276 100644
--- a/Jellyfin.Api/Controllers/VideoHlsController.cs
+++ b/Jellyfin.Api/Controllers/VideoHlsController.cs
@@ -366,8 +366,7 @@ namespace Jellyfin.Api.Controllers
else if (string.Equals(segmentFormat, "mp4", StringComparison.OrdinalIgnoreCase))
{
var outputFmp4HeaderArg = string.Empty;
- var isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
- if (isWindows)
+ if (OperatingSystem.IsWindows())
{
// on Windows, the path of fmp4 header file needs to be configured
outputFmp4HeaderArg = " -hls_fmp4_init_filename \"" + outputPrefix + "-1" + outputExtension + "\"";