tag/Handler: pass std::span to OnPicture()

This commit is contained in:
Max Kellermann
2022-05-24 13:51:18 +02:00
parent 2e6f115bcc
commit 6d113de1f8
9 changed files with 41 additions and 39 deletions

View File

@@ -111,7 +111,7 @@ Scan(const FLAC__StreamMetadata_Picture &picture, TagHandler &handler) noexcept
return;
handler.OnPicture(picture.mime_type,
{picture.data, picture.data_length});
std::as_bytes(std::span{picture.data, picture.data_length}));
}
void