Subtract chunk duration from initial chunk timestamp

This brings it into line with all other StreamReaders.
This commit is contained in:
Marcus Weseloh 2024-06-18 15:47:32 +02:00 committed by Johannes Pohl
parent 642612782c
commit 445a7a2e7c

View file

@ -352,7 +352,7 @@ int JackStream::readJackBuffers(jack_nframes_t nframes)
if (first_)
{
first_ = false;
tvEncodedChunk_ = std::chrono::steady_clock::now();
tvEncodedChunk_ = std::chrono::steady_clock::now() - chunk_->duration<chrono::nanoseconds>();
}
}