mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-01 23:59:43 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@192 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
7dccf599a3
commit
8903cbb0d2
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ void Stream::setBufferLen(size_t bufferLenMs)
|
|||
|
||||
void Stream::addChunk(Chunk* chunk)
|
||||
{
|
||||
while (chunks.size() * WIRE_CHUNK_MS > 10000)
|
||||
chunks.pop();
|
||||
chunks.push(shared_ptr<Chunk>(chunk));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue