mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
Small fix in queue cleanup
This commit is contained in:
parent
3f0a18f8b5
commit
0956a24d2e
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ void StreamSession::sendAsync(shared_const_buffer const_buf, bool send_now)
|
|||
{
|
||||
strand_.post([ this, self = shared_from_this(), const_buf, send_now ]() {
|
||||
// delete PCM chunks that are older than the overall buffer duration
|
||||
messages_.erase(std::remove_if(messages_.begin() + 1, messages_.end(),
|
||||
messages_.erase(std::remove_if(messages_.begin(), messages_.end(),
|
||||
[this](const shared_const_buffer& buffer) {
|
||||
const auto& msg = buffer.message();
|
||||
if (!msg.is_pcm_chunk || buffer.on_air)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue