diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-08-13 00:33:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-13 00:33:18 +0200 |
| commit | e5a29824e5126bead4194fff3e9f7d95133c9fb7 (patch) | |
| tree | 679f8fe5926fef2f518567df049703a4092b4acc /Jellyfin.Api/Controllers/VideoHlsController.cs | |
| parent | 1f99c9b90c5b791bb41ff711ad20b390f4f2268f (diff) | |
| parent | f83a5bb08eeb503b1ff40507b966af1b266fbaa7 (diff) | |
Merge branch 'master' into minor15
Diffstat (limited to 'Jellyfin.Api/Controllers/VideoHlsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/VideoHlsController.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/VideoHlsController.cs b/Jellyfin.Api/Controllers/VideoHlsController.cs index 6a720b1a4..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 + "\""; @@ -485,7 +484,7 @@ namespace Jellyfin.Api.Controllers args += " -ar " + state.OutputAudioSampleRate.Value.ToString(CultureInfo.InvariantCulture); } - args += _encodingHelper.GetAudioFilterParam(state, _encodingOptions, true); + args += _encodingHelper.GetAudioFilterParam(state, _encodingOptions); return args; } |
