Bug 1330918 - Default construct mDuration in VideoChunk. r?jesup draft
authorAndreas Pehrson <pehrsons@gmail.com>
Wed, 18 Jan 2017 09:59:29 +0100
changeset 463232 1d855af0e4c008191b5379a6ca489fa4c5d35120
parent 463231 43ecc4ebe778b26a5f21a6ef376e5fd13ba50c3c
child 463233 262c84fca42c483306751d47b5aa25bf2d25c713
push id41997
push userbmo:pehrson@telenordigital.com
push dateWed, 18 Jan 2017 18:50:08 +0000
reviewersjesup
bugs1330918
milestone53.0a1
Bug 1330918 - Default construct mDuration in VideoChunk. r?jesup MozReview-Commit-ID: LLPnS4iU4Ax
dom/media/VideoSegment.cpp
--- a/dom/media/VideoSegment.cpp
+++ b/dom/media/VideoSegment.cpp
@@ -85,16 +85,17 @@ VideoFrame::CreateBlackImage(const gfx::
     MOZ_ASSERT(false);
     return nullptr;
   }
 
   return image.forget();
 }
 
 VideoChunk::VideoChunk()
+  : mDuration(0)
 {}
 
 VideoChunk::~VideoChunk()
 {}
 
 void
 VideoSegment::AppendFrame(already_AddRefed<Image>&& aImage,
                           StreamTime aDuration,