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

Co-authored-by: Michael Powers <swedishborgie@gmail.com>
pull/9050/head
Bond-009 1 year ago committed by GitHub
parent e6606d41ce
commit f0faddcc44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
{

Loading…
Cancel
Save