Bug 853076 - Initialized the chunk to be empty before getting audio frames. r=ehsan

--HG--
extra : rebase_source : 06845291a1d86aac4adbde1163196f5de61289e9
This commit is contained in:
Paul Adenot 2013-03-21 10:56:40 +01:00
parent ab8a1a4020
commit a27b25c611

View File

@ -255,6 +255,8 @@ AudioNodeStream::ProduceOutput(GraphTime aFrom, GraphTime aTo)
AudioChunk outputChunk;
AudioSegment* segment = track->Get<AudioSegment>();
outputChunk.SetNull(0);
if (mInCycle) {
// XXX DelayNode not supported yet so just produce silence
outputChunk.SetNull(WEBAUDIO_BLOCK_SIZE);