Merge pull request #8726 from swedishborgie/master

HDHomeRun - Fix incorrect starting offset of buffer span in CheckTunerAvailability.
This commit is contained in:
Claus Vium 2022-11-11 14:01:06 +01:00 committed by GitHub
commit c6e4b0b1bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun
int receivedBytes = await stream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
return VerifyReturnValueOfGetSet(buffer.AsSpan(receivedBytes), "none");
return VerifyReturnValueOfGetSet(buffer.AsSpan(0, receivedBytes), "none");
}
finally
{