Merge pull request #2849 from lyonzy/patch-1
Handle null outputFileExtension in GetOutputFilePath
This commit is contained in:
commit
5c669d7ad7
|
@ -134,7 +134,7 @@ namespace MediaBrowser.Api.Playback
|
||||||
var data = $"{state.MediaPath}-{state.UserAgent}-{state.Request.DeviceId}-{state.Request.PlaySessionId}";
|
var data = $"{state.MediaPath}-{state.UserAgent}-{state.Request.DeviceId}-{state.Request.PlaySessionId}";
|
||||||
|
|
||||||
var filename = data.GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
var filename = data.GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
||||||
var ext = outputFileExtension.ToLowerInvariant();
|
var ext = outputFileExtension?.ToLowerInvariant();
|
||||||
var folder = ServerConfigurationManager.GetTranscodePath();
|
var folder = ServerConfigurationManager.GetTranscodePath();
|
||||||
|
|
||||||
return EnableOutputInSubFolder
|
return EnableOutputInSubFolder
|
||||||
|
|
Loading…
Reference in New Issue
Block a user