fix wrong emplace usage
emplace already calls std::pair. No need for it again. No need to emplace when calling std::make_shared. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -346,7 +346,7 @@ SnapcastOutput::Play(const void *chunk, size_t size)
|
||||
inject_event.Schedule();
|
||||
|
||||
const ConstBuffer payload{buffer, nbytes};
|
||||
chunks.emplace(std::make_shared<SnapcastChunk>(now, AllocatedArray{payload}));
|
||||
chunks.push(std::make_shared<SnapcastChunk>(now, AllocatedArray{payload}));
|
||||
}
|
||||
|
||||
return size;
|
||||
|
||||
Reference in New Issue
Block a user