diff options
| author | Bond_009 <Bond.009@outlook.com> | 2020-08-07 17:38:01 +0200 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2020-08-09 14:08:55 +0200 |
| commit | 371a09c60bddb49298e2cf7f1968514ab4d243e4 (patch) | |
| tree | 6932ce68f3e27c0bfbf5556139dfadd05ba63cda /Jellyfin.Api/Controllers/ImageController.cs | |
| parent | 75bb127599c2507391c612332d1866d1fdc9da13 (diff) | |
MemoryStream optimizations
Diffstat (limited to 'Jellyfin.Api/Controllers/ImageController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ImageController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.cs index 45447ae0c..8f5c6beb3 100644 --- a/Jellyfin.Api/Controllers/ImageController.cs +++ b/Jellyfin.Api/Controllers/ImageController.cs @@ -969,7 +969,7 @@ namespace Jellyfin.Api.Controllers var text = await reader.ReadToEndAsync().ConfigureAwait(false); var bytes = Convert.FromBase64String(text); - return new MemoryStream(bytes) { Position = 0 }; + return new MemoryStream(bytes, 0, bytes.Length, false, true); } private ImageInfo? GetImageInfo(BaseItem item, ItemImageInfo info, int? imageIndex) |
