aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ImageController.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-08-13 13:01:43 -0400
committerGitHub <noreply@github.com>2020-08-13 13:01:43 -0400
commit5480674c4fcf279bab640f24131d188a6a089eb4 (patch)
tree95f2b9f47176334f74f774563a35aa68275cc9dd /Jellyfin.Api/Controllers/ImageController.cs
parent32d465742989520b8cd9ecdad759ed9cfc128a54 (diff)
parent593dbcabffd1a0c09af64f3a19ed46c97d626559 (diff)
Merge pull request #3838 from Bond-009/memorystream
MemoryStream optimizations
Diffstat (limited to 'Jellyfin.Api/Controllers/ImageController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ImageController.cs2
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)