diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-02-16 00:42:09 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-02-16 00:44:10 +0100 |
| commit | 18e1d03a89b7fe3ddba925f81b153d0f0cd1973c (patch) | |
| tree | d7ab62a67bc7b45c73d98418b7edee05b7818ad1 /Jellyfin.Server/SocketSharp/RequestMono.cs | |
| parent | 3947f2315dea8b7e390e219f188d0ecf3f5ee2d2 (diff) | |
Comments
Diffstat (limited to 'Jellyfin.Server/SocketSharp/RequestMono.cs')
| -rw-r--r-- | Jellyfin.Server/SocketSharp/RequestMono.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Jellyfin.Server/SocketSharp/RequestMono.cs b/Jellyfin.Server/SocketSharp/RequestMono.cs index fe8e8242a..24cf994ea 100644 --- a/Jellyfin.Server/SocketSharp/RequestMono.cs +++ b/Jellyfin.Server/SocketSharp/RequestMono.cs @@ -445,7 +445,7 @@ namespace Jellyfin.Server.SocketSharp long virt = real - offset; 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); @@ -618,8 +618,7 @@ namespace Jellyfin.Server.SocketSharp } } - long start = 0; - start = data.Position; + long start = data.Position; elem.Start = start; long pos = MoveToNextBoundary(); if (pos == -1) |
