diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-10-09 12:19:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-09 12:19:44 +0200 |
| commit | 115669948149b2d76604deca58955cc4eedbd474 (patch) | |
| tree | 5872d34595d66d5bd446271d12d9e2a79afa355e /Emby.Drawing/ImageProcessor.cs | |
| parent | 1bfe6342df2fe7c094a31737bba511f9dfd44d71 (diff) | |
| parent | 9af16fcb6c892238b734c267873b1fc137d38e66 (diff) | |
Merge pull request #6657 from Bond-009/dotnetbug
Diffstat (limited to 'Emby.Drawing/ImageProcessor.cs')
| -rw-r--r-- | Emby.Drawing/ImageProcessor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Drawing/ImageProcessor.cs b/Emby.Drawing/ImageProcessor.cs index 9b130fdfd..ac73cfa42 100644 --- a/Emby.Drawing/ImageProcessor.cs +++ b/Emby.Drawing/ImageProcessor.cs @@ -102,7 +102,7 @@ namespace Emby.Drawing { var file = await ProcessImage(options).ConfigureAwait(false); - using (var fileStream = new FileStream(file.Item1, FileMode.Open, FileAccess.Read, FileShare.Read, IODefaults.FileStreamBufferSize, FileOptions.Asynchronous)) + using (var fileStream = AsyncFile.OpenRead(file.Item1)) { await fileStream.CopyToAsync(toStream).ConfigureAwait(false); } |
