mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-23 21:17:03 +02:00
fixed stream age calculation
This commit is contained in:
parent
e72e71e6f8
commit
1e855e8d1c
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ bool Stream::getPlayerChunk(void* outputBuffer, const cs::usec& outputBufferDacT
|
|||
/// age = 0 => play now
|
||||
/// age < 0 => play in -age
|
||||
/// age > 0 => too old
|
||||
cs::usec age = std::chrono::duration_cast<cs::usec>(TimeProvider::serverNow() - chunk_->start() - bufferMs_ + outputBufferDacTime);
|
||||
cs::usec age = std::chrono::duration_cast<cs::usec>(TimeProvider::serverNow() - chunk_->start()) - bufferMs_ + outputBufferDacTime;
|
||||
if ((sleep_.count() == 0) && (cs::abs(age) > cs::msec(200)))
|
||||
{
|
||||
logO << "age > 200: " << cs::duration<cs::msec>(age) << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue