BaronGreenback %!s(int64=4) %!d(string=hai) anos
pai
achega
e81b7c8f4f
Modificáronse 2 ficheiros con 1 adicións e 3 borrados
  1. 1 2
      Emby.Dlna/Didl/DidlBuilder.cs
  2. 0 1
      Emby.Dlna/PlayTo/TransportCommands.cs

+ 1 - 2
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();

+ 0 - 1
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;