Handle null outputFileExtension in GetOutputFilePath

pull/2849/head
Matt Lyons 5 years ago committed by GitHub
parent 9a0a4575ad
commit b52199e9e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -131,6 +131,8 @@ namespace MediaBrowser.Api.Playback
/// </summary>
private string GetOutputFilePath(StreamState state, EncodingOptions encodingOptions, string outputFileExtension)
{
if (outputFileExtension == null) outputFileExtension = "";
var data = $"{state.MediaPath}-{state.UserAgent}-{state.Request.DeviceId}-{state.Request.PlaySessionId}";
var filename = data.GetMD5().ToString("N", CultureInfo.InvariantCulture);

Loading…
Cancel
Save