Backport 8726: Fix incorrect starting offset of buffer span in CheckTunerAvailability. (#9020)

Co-authored-by: Michael Powers <swedishborgie@gmail.com>
This commit is contained in:
Bond-009 2023-01-07 19:30:34 +01:00 committed by GitHub
parent e6606d41ce
commit f0faddcc44
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
{