Fix incorrect starting offset of buffer span in CheckTunerAvailability.

Resolves #7154
This commit is contained in:
Michael Powers 2022-11-10 23:29:21 -05:00
parent 42399dde9c
commit 84d1b07849
No known key found for this signature in database
GPG Key ID: 081A665ADB3123BD

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
{