Merge pull request #1731 from EraYaN/segment-time-delta-culture-fix

Fix culture problem on Windows for segment_time_delta argument.
This commit is contained in:
Joshua M. Boniface 2019-09-10 10:41:59 -04:00 committed by GitHub
commit c63a53959c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -970,7 +970,7 @@ namespace MediaBrowser.Api.Playback.Hls
if (isEncoding && state.TargetFramerate > 0)
{
float startTime = 1 / (state.TargetFramerate.Value * 2);
timeDeltaParam = string.Format("-segment_time_delta {0}", Math.Round(startTime, 3));
timeDeltaParam = string.Format(CultureInfo.InvariantCulture, "-segment_time_delta {0:F3}", startTime);
}
var segmentFormat = GetSegmentFileExtension(state.Request).TrimStart('.');