mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-15 04:00:25 +01:00
Minor improvements
OFC I reduced some allocations
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user