Bond-009 6 years ago
parent
commit
18e1d03a89
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Jellyfin.Server/SocketSharp/RequestMono.cs

+ 2 - 3
Jellyfin.Server/SocketSharp/RequestMono.cs

@@ -445,7 +445,7 @@ namespace Jellyfin.Server.SocketSharp
                     long virt = real - offset;
                     long virt = real - offset;
                     if (virt < 0 || virt > Length)
                     if (virt < 0 || virt > Length)
                     {
                     {
-                        throw new ArgumentException("Invalid position", nameof(origin));
+                        throw new ArgumentException("Invalid position", nameof(d));
                     }
                     }
 
 
                     position = s.Seek(real, SeekOrigin.Begin);
                     position = s.Seek(real, SeekOrigin.Begin);
@@ -618,8 +618,7 @@ namespace Jellyfin.Server.SocketSharp
                     }
                     }
                 }
                 }
 
 
-                long start = 0;
-                start = data.Position;
+                long start = data.Position;
                 elem.Start = start;
                 elem.Start = start;
                 long pos = MoveToNextBoundary();
                 long pos = MoveToNextBoundary();
                 if (pos == -1)
                 if (pos == -1)