mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 08:45:23 +03:00
defer path creation when possible
This commit is contained in:
@@ -562,6 +562,13 @@ namespace MediaBrowser.Api.Playback
|
||||
/// <returns>Task.</returns>
|
||||
protected async Task StartFfMpeg(StreamState state, string outputPath)
|
||||
{
|
||||
var parentPath = Path.GetDirectoryName(outputPath);
|
||||
|
||||
if (!Directory.Exists(parentPath))
|
||||
{
|
||||
Directory.CreateDirectory(parentPath);
|
||||
}
|
||||
|
||||
var video = state.Item as Video;
|
||||
|
||||
if (video != null && video.VideoType == VideoType.Iso && video.IsoType.HasValue && IsoManager.CanMount(video.Path))
|
||||
|
||||
Reference in New Issue
Block a user