Bug 1305679 - Fix CID 1373350: Uninitialized members (UNINIT_CTOR) in VideoDecoderChild draft
authorJames Cheng <jacheng@mozilla.com>
Tue, 27 Sep 2016 18:29:49 +0800
changeset 417940 cfef1ace5e65fd948554e160236749e257382c25
parent 417914 66a77b9bfe5dcacd50eccf85de7c0e7e15ce0ffd
child 532207 02aac879ab95b1310d0e5161678996834ffe37f4
push id30531
push userbmo:jacheng@mozilla.com
push dateTue, 27 Sep 2016 10:30:09 +0000
bugs1305679, 1373350
milestone52.0a1
Bug 1305679 - Fix CID 1373350: Uninitialized members (UNINIT_CTOR) in VideoDecoderChild MozReview-Commit-ID: 80fdud44CmE
dom/media/ipc/VideoDecoderChild.cpp
--- a/dom/media/ipc/VideoDecoderChild.cpp
+++ b/dom/media/ipc/VideoDecoderChild.cpp
@@ -16,16 +16,17 @@ namespace dom {
 
 using base::Thread;
 using namespace ipc;
 using namespace layers;
 using namespace gfx;
 
 VideoDecoderChild::VideoDecoderChild()
   : mThread(VideoDecoderManagerChild::GetManagerThread())
+  , mLayersBackend(layers::LayersBackend::LAYERS_NONE)
   , mCanSend(true)
 {
 }
 
 VideoDecoderChild::~VideoDecoderChild()
 {
   AssertOnManagerThread();
   mInitPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_CANCELED, __func__);