From e81b7c8f4f054aaf5c1f25ea9c9d6986fbd501c3 Mon Sep 17 00:00:00 2001 From: BaronGreenback Date: Mon, 18 Jan 2021 12:17:18 +0000 Subject: [PATCH] reverted --- Emby.Dlna/Didl/DidlBuilder.cs | 3 +-- Emby.Dlna/PlayTo/TransportCommands.cs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Emby.Dlna/Didl/DidlBuilder.cs b/Emby.Dlna/Didl/DidlBuilder.cs index 02bfa6053..8b50d47fb 100644 --- a/Emby.Dlna/Didl/DidlBuilder.cs +++ b/Emby.Dlna/Didl/DidlBuilder.cs @@ -96,6 +96,7 @@ namespace Emby.Dlna.Didl using (StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8)) { + // If this using are changed to single lines, then write.Flush needs to be appended before the return. using (var writer = XmlWriter.Create(builder, settings)) { // writer.WriteStartDocument(); @@ -113,8 +114,6 @@ namespace Emby.Dlna.Didl writer.WriteFullEndElement(); // writer.WriteEndDocument(); - - writer.Flush(); } return builder.ToString(); diff --git a/Emby.Dlna/PlayTo/TransportCommands.cs b/Emby.Dlna/PlayTo/TransportCommands.cs index 3cf4b810d..0865968ad 100644 --- a/Emby.Dlna/PlayTo/TransportCommands.cs +++ b/Emby.Dlna/PlayTo/TransportCommands.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Security; using System.Xml.Linq; using Emby.Dlna.Common; using Emby.Dlna.Ssdp;