mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-17 19:16:14 +02:00
Fix sending silence after 186min 24s
This commit is contained in:
parent
55368bbd4d
commit
d9adc25007
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ void PosixStream::do_read()
|
|||
{
|
||||
// no data available, fill with silence
|
||||
memset(chunk_->payload + len, 0, toRead - len);
|
||||
idle_bytes_ += toRead - len;
|
||||
|
||||
// avoid overflow after 186min 24s silence (at 48000:16:2)
|
||||
if (idle_bytes_ <= max_idle_bytes_)
|
||||
idle_bytes_ += toRead - len;
|
||||
break;
|
||||
}
|
||||
else if (count == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue