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/DynamicHlsController.cs | |
| parent | 1f99c9b90c5b791bb41ff711ad20b390f4f2268f (diff) | |
| parent | f83a5bb08eeb503b1ff40507b966af1b266fbaa7 (diff) | |
Merge branch 'master' into minor15
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DynamicHlsController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs index 62283d038..35435b007 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 + "\"", @@ -1496,7 +1496,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; } |
