mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 16:36:17 +02:00
Fix warnings
This commit is contained in:
parent
97bfd95f28
commit
aab3c343d0
15 changed files with 31 additions and 10 deletions
|
@ -115,7 +115,7 @@ void Stream::addChunk(unique_ptr<msg::PcmChunk> chunk)
|
|||
std::shared_ptr<msg::PcmChunk> front_;
|
||||
while (chunks_.front_copy(front_))
|
||||
{
|
||||
auto age = std::chrono::duration_cast<cs::msec>(TimeProvider::serverNow() - front_->start());
|
||||
age = std::chrono::duration_cast<cs::msec>(TimeProvider::serverNow() - front_->start());
|
||||
if ((age > 5s + bufferMs_) && chunks_.try_pop(front_))
|
||||
LOG(TRACE, LOG_TAG) << "Oldest chunk too old: " << age.count() << " ms, removing. Chunks in queue left: " << chunks_.size() << "\n";
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue