util/DynamicFifoBuffer: pass std::span to Append()

This commit is contained in:
Max Kellermann
2022-07-11 22:28:31 +02:00
parent 53acf7ae82
commit cd241a93c1
4 changed files with 7 additions and 7 deletions

View File

@@ -85,7 +85,7 @@ private:
[[maybe_unused]] unsigned current_frame,
void *client_data) noexcept {
auto &encoder = *(FlacEncoder *)client_data;
encoder.output_buffer.Append((const std::byte *)data, bytes);
encoder.output_buffer.Append({(const std::byte *)data, bytes});
return FLAC__STREAM_ENCODER_WRITE_STATUS_OK;
}
};