fixed crash during shutdown

This commit is contained in:
badaix 2015-08-12 23:28:44 +02:00
parent 438523f527
commit 4db8696889
3 changed files with 9 additions and 2 deletions

View file

@ -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);