aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-12-24 02:42:43 +0000
committerGitHub <noreply@github.com>2021-12-24 02:42:43 +0000
commit17f43c8e01a764d8e030a75b8d3c7f89146677d8 (patch)
tree7f0f13aed430ec5abb3f556deb84e2d85043b88d
parent634ce40c2facfbfaf6454ad8d3a7f2aca4723b46 (diff)
Update 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 bdd2612d1..36643e464 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))
{
string outputFmp4HeaderArg;
- 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 + "\"";