mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-21 13:06:15 +02:00
fixed crash during shutdown
This commit is contained in:
parent
438523f527
commit
4db8696889
3 changed files with 9 additions and 2 deletions
|
@ -113,7 +113,7 @@ void OggEncoder::encode(const msg::PcmChunk* chunk)
|
|||
if (res > 0)
|
||||
{
|
||||
res /= (sampleFormat_.rate / 1000.);
|
||||
logO << "res: " << res << "\n";
|
||||
// logO << "res: " << res << "\n";
|
||||
lastGranulepos = os.granulepos;
|
||||
// make oggChunk smaller
|
||||
oggChunk->payload = (char*)realloc(oggChunk->payload, pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue