Minor improvements

OFC I reduced some allocations
This commit is contained in:
Bond_009
2020-08-03 20:32:45 +02:00
parent 5b4863c65b
commit 2b355c36ff
7 changed files with 41 additions and 37 deletions

View File

@@ -125,7 +125,7 @@ namespace MediaBrowser.Providers.Manager
// If there are more than one output paths, the stream will need to be seekable
var memoryStream = new MemoryStream();
using (source)
await using (source.ConfigureAwait(false))
{
await source.CopyToAsync(memoryStream).ConfigureAwait(false);
}
@@ -138,7 +138,7 @@ namespace MediaBrowser.Providers.Manager
var savedPaths = new List<string>();
await using (source)
await using (source.ConfigureAwait(false))
{
var currentPathIndex = 0;