This commit is contained in:
Bond-009 2019-02-16 00:42:09 +01:00
parent 3947f2315d
commit 18e1d03a89

View file

@ -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; long start = data.Position;
start = data.Position;
elem.Start = start; elem.Start = start;
long pos = MoveToNextBoundary(); long pos = MoveToNextBoundary();
if (pos == -1) if (pos == -1)