Bug 1196591: Initialize member. r=me a=sylvestre
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 20 Aug 2015 12:00:34 +1000
changeset 288824 2452b513ecc2b7d80392ca9c346d8a4ac9c53e00
parent 288823 86e30962df7edab5c56781fb942930a7e79bf35d
child 288825 826fd80899a38d020ad09f04e48978e3f970db86
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, sylvestre
bugs1196591, 1190238
milestone42.0a2
Bug 1196591: Initialize member. r=me a=sylvestre Small correction introduced in bug 1190238
dom/media/BufferMediaResource.h
--- a/dom/media/BufferMediaResource.h
+++ b/dom/media/BufferMediaResource.h
@@ -21,16 +21,17 @@ class BufferMediaResource : public Media
 {
 public:
   BufferMediaResource(const uint8_t* aBuffer,
                       uint32_t aLength,
                       nsIPrincipal* aPrincipal,
                       const nsACString& aContentType) :
     mBuffer(aBuffer),
     mLength(aLength),
+    mOffset(0),
     mPrincipal(aPrincipal),
     mContentType(aContentType)
   {
     MOZ_COUNT_CTOR(BufferMediaResource);
   }
 
 protected:
   virtual ~BufferMediaResource()