aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/VideoHlsController.cs
diff options
context:
space:
mode:
authorRich Lander <rlander@microsoft.com>2021-07-26 13:08:27 -0700
committerGitHub <noreply@github.com>2021-07-26 13:08:27 -0700
commit3e0aab390aea4e934e60c4b60caee802cfe706d8 (patch)
treea0d36f12a50724ac4531ac7af76058c996a5e3c7 /Jellyfin.Api/Controllers/VideoHlsController.cs
parent0ce7a15534461d70730ac8d1accfda1d45b01b55 (diff)
parent85e705d09efbda1630b419fab3a0065046b8de6d (diff)
Merge branch 'master' into mediabrowser-controller-entities
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 + "\"";