Bug 916773 - Initialize mLatency in SharedBuffer's constructor. r=ehsan
authorPaul Adenot <paul@paul.cx>
Mon, 16 Sep 2013 17:37:26 +0200
changeset 147666 425870d13b131d22e9c48ae99b44faa259a7d739
parent 147665 505e8f8480d200426b460b900ef20af5317e11ad
child 147667 a45b455c7c31862498e1ad5a26538c8209c135dd
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersehsan
bugs916773
milestone27.0a1
Bug 916773 - Initialize mLatency in SharedBuffer's constructor. r=ehsan
content/media/webaudio/ScriptProcessorNode.cpp
--- a/content/media/webaudio/ScriptProcessorNode.cpp
+++ b/content/media/webaudio/ScriptProcessorNode.cpp
@@ -93,16 +93,17 @@ private:
     BufferList mBufferList;
   };
 
 public:
   SharedBuffers(float aSampleRate)
     : mOutputQueue("SharedBuffers::outputQueue")
     , mDelaySoFar(TRACK_TICKS_MAX)
     , mSampleRate(aSampleRate)
+    , mLatency(0.0)
     , mDroppingBuffers(false)
   {
   }
 
   // main thread
   void FinishProducingOutputBuffer(ThreadSharedFloatArrayBufferList* aBuffer,
                                    uint32_t aBufferSize)
   {