Bug 870197 - Initialize mFrameCallback to null. r=mikeh
authorDave Hylands <dhylands@mozilla.com>
Thu, 09 May 2013 10:17:42 -0700
changeset 138113 17f93f12b0843cf6c52e90bc88d8b2117cc745ec
parent 138112 7ef0ed6ea2db75c5d0f8109195d91c818d3ac594
child 138136 6c48ce88a31ad3476e3403008a02b589ac44e2ba
push id3752
push userlsblakk@mozilla.com
push dateMon, 13 May 2013 17:21:10 +0000
treeherdermozilla-aurora@1580544aef0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikeh
bugs870197
milestone23.0a1
Bug 870197 - Initialize mFrameCallback to null. r=mikeh
dom/camera/CameraPreviewMediaStream.h
--- a/dom/camera/CameraPreviewMediaStream.h
+++ b/dom/camera/CameraPreviewMediaStream.h
@@ -24,17 +24,18 @@ public:
  * But the SourceMediaStream do not support it.
  */
 class CameraPreviewMediaStream : public MediaStream {
   typedef mozilla::layers::Image Image;
 
 public:
   CameraPreviewMediaStream(DOMMediaStream* aWrapper) :
     MediaStream(aWrapper),
-    mMutex("mozilla::camera::CameraPreviewMediaStream")
+    mMutex("mozilla::camera::CameraPreviewMediaStream"),
+    mFrameCallback(nullptr)
   {
     mIsConsumed = false;
   }
 
   virtual void AddAudioOutput(void* aKey);
   virtual void SetAudioOutputVolume(void* aKey, float aVolume);
   virtual void RemoveAudioOutput(void* aKey);
   virtual void AddVideoOutput(VideoFrameContainer* aContainer);