aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/VideoHlsController.cs
diff options
context:
space:
mode:
authorRich Lander <rlander@microsoft.com>2021-07-30 10:44:43 -0700
committerGitHub <noreply@github.com>2021-07-30 10:44:43 -0700
commit47da13613b143794e1f1422e05dac63a40f5f66a (patch)
tree59ec139682ed5a61f7c24ccf9e6df434cffad04a /Jellyfin.Api/Controllers/VideoHlsController.cs
parent927b003143f7e4772e21b767f2524f969ddf1ad8 (diff)
parent0ee74b293d1f6fa1be63b8b4e5e2498a7f18298f (diff)
Merge branch 'master' into media-provides-analysis-fixes
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 + "\"";