aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/VideoHlsController.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2021-07-12 20:20:50 +0200
committerBond_009 <bond.009@outlook.com>2021-07-12 20:21:51 +0200
commit8528e9bddb4c2dd9e1e3294649e39c7ec609bdf5 (patch)
tree48336e53e9ee3392c2eb2e3bbb2a2466730014d7 /Jellyfin.Api/Controllers/VideoHlsController.cs
parent951a9f39c05831327269da65f30c26d6ccd532d8 (diff)
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 6a720b1a4..1e0329821 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 + "\"";