input/InputStream: pass std::span<std::byte> to Read()
This commit is contained in:
@@ -197,7 +197,7 @@ read_stream_art(Response &r, const std::string_view art_directory,
|
||||
if (buffer_size > 0) {
|
||||
std::unique_lock<Mutex> lock(is->mutex);
|
||||
is->Seek(lock, offset);
|
||||
read_size = is->Read(lock, buffer.get(), buffer_size);
|
||||
read_size = is->Read(lock, {buffer.get(), buffer_size});
|
||||
}
|
||||
|
||||
r.Fmt(FMT_STRING("size: {}\n"), art_file_size);
|
||||
|
Reference in New Issue
Block a user