mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-27 21:38:48 +02:00
Subtract chunk duration from initial chunk timestamp
This brings it into line with all other StreamReaders.
This commit is contained in:
parent
642612782c
commit
445a7a2e7c
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ int JackStream::readJackBuffers(jack_nframes_t nframes)
|
||||||
if (first_)
|
if (first_)
|
||||||
{
|
{
|
||||||
first_ = false;
|
first_ = false;
|
||||||
tvEncodedChunk_ = std::chrono::steady_clock::now();
|
tvEncodedChunk_ = std::chrono::steady_clock::now() - chunk_->duration<chrono::nanoseconds>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue