Fix uninitialized variable in DynamicsCompressor
authorcrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Mar 2012 22:24:17 +0000 (22:24 +0000)
committercrogers@google.com <crogers@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Mar 2012 22:24:17 +0000 (22:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80724

Reviewed by James Robinson.

* platform/audio/DynamicsCompressor.cpp:
(WebCore::DynamicsCompressor::DynamicsCompressor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110330 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/audio/DynamicsCompressor.cpp

index 2a92c33..74083ab 100644 (file)
@@ -1,3 +1,13 @@
+2012-03-09  Chris Rogers  <crogers@google.com>
+
+        Fix uninitialized variable in DynamicsCompressor
+        https://bugs.webkit.org/show_bug.cgi?id=80724
+
+        Reviewed by James Robinson.
+
+        * platform/audio/DynamicsCompressor.cpp:
+        (WebCore::DynamicsCompressor::DynamicsCompressor):
+
 2012-03-09  Erik Arvidsson  <arv@chromium.org>
 
         [V8] Undo text position adjustment for attribute event handlers
index 58704c4..c943b98 100644 (file)
@@ -42,6 +42,7 @@ using namespace AudioUtilities;
     
 DynamicsCompressor::DynamicsCompressor(float sampleRate, unsigned numberOfChannels)
     : m_numberOfChannels(numberOfChannels)
+    , m_sampleRate(sampleRate)
     , m_compressor(sampleRate, numberOfChannels)
 {
     // Uninitialized state - for parameter recalculation.