decoder/*: use std::span instead of ConstBuffer
This commit is contained in:
@@ -153,10 +153,10 @@ FlacSubmitToClient(DecoderClient &client, FlacDecoder &d) noexcept
|
||||
|
||||
if (!d.chunk.empty()) {
|
||||
auto cmd = client.SubmitData(d.GetInputStream(),
|
||||
d.chunk.data,
|
||||
d.chunk.size,
|
||||
d.chunk.data(),
|
||||
d.chunk.size(),
|
||||
d.kbit_rate);
|
||||
d.chunk = nullptr;
|
||||
d.chunk = {};
|
||||
if (cmd != DecoderCommand::NONE)
|
||||
return cmd;
|
||||
}
|
||||
|
Reference in New Issue
Block a user