From 4b25d65c02ae27403c75632f33bba2cdd7d0b26f Mon Sep 17 00:00:00 2001 From: cvium Date: Wed, 19 Jul 2023 12:12:58 +0200 Subject: [PATCH] fix: set memorystream position after copying --- Emby.Dlna/PlayTo/DlnaHttpClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Emby.Dlna/PlayTo/DlnaHttpClient.cs b/Emby.Dlna/PlayTo/DlnaHttpClient.cs index 8454c1afd..220aa1a8d 100644 --- a/Emby.Dlna/PlayTo/DlnaHttpClient.cs +++ b/Emby.Dlna/PlayTo/DlnaHttpClient.cs @@ -57,6 +57,7 @@ namespace Emby.Dlna.PlayTo response.EnsureSuccessStatusCode(); await using MemoryStream ms = new MemoryStream(); await response.Content.CopyToAsync(ms, cancellationToken).ConfigureAwait(false); + ms.Position = 0; try { return await XDocument.LoadAsync(