tag/IcyMetadataParser: use std::span

This commit is contained in:
Max Kellermann
2023-12-20 19:32:21 +01:00
parent b09654b53a
commit 3c5b864396
3 changed files with 36 additions and 42 deletions

View File

@@ -81,7 +81,7 @@ IcyInputStream::Read(std::unique_lock<Mutex> &lock,
return 0;
}
size_t result = parser->ParseInPlace(ptr, nbytes);
size_t result = parser->ParseInPlace({static_cast<std::byte *>(ptr), nbytes});
if (result > 0) {
override_offset += result;
offset = override_offset;