diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-07-12 20:20:50 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-07-12 20:21:51 +0200 |
| commit | 8528e9bddb4c2dd9e1e3294649e39c7ec609bdf5 (patch) | |
| tree | 48336e53e9ee3392c2eb2e3bbb2a2466730014d7 /Jellyfin.Api/Controllers/DynamicHlsController.cs | |
| parent | 951a9f39c05831327269da65f30c26d6ccd532d8 (diff) | |
Improve platform checks
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DynamicHlsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs index 62283d038..dcf262e32 100644 --- a/Jellyfin.Api/Controllers/DynamicHlsController.cs +++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs @@ -1380,7 +1380,7 @@ namespace Jellyfin.Api.Controllers } else if (string.Equals(segmentFormat, "mp4", StringComparison.OrdinalIgnoreCase)) { - var outputFmp4HeaderArg = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) switch + var outputFmp4HeaderArg = OperatingSystem.IsWindows() switch { // on Windows, the path of fmp4 header file needs to be configured true => " -hls_fmp4_init_filename \"" + outputPrefix + "-1" + outputExtension + "\"", |
