Bug 1216059 - SourceMediaStream::TrackData::mResamplerChannelCount is used uninitialised. r=padenot.
authorJulian Seward <jseward@acm.org>
Tue, 20 Oct 2015 12:01:08 +0200
changeset 268519 73b53d0fb12ea8d0186f82cd3de35e907fc29fa9
parent 268518 8dc73ca2ec858a58237c5a4ec66244fa822d9cfc
child 268520 60f4276010c0847ed2e737b1b009ec019ff8888f
push id29552
push userkwierso@gmail.com
push dateTue, 20 Oct 2015 20:22:39 +0000
treeherdermozilla-central@0416fbbd3a63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1216059
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1216059 - SourceMediaStream::TrackData::mResamplerChannelCount is used uninitialised. r=padenot.
dom/media/MediaStreamGraph.cpp
--- a/dom/media/MediaStreamGraph.cpp
+++ b/dom/media/MediaStreamGraph.cpp
@@ -2107,16 +2107,17 @@ SourceMediaStream::AddTrackInternal(Trac
                                     MediaSegment* aSegment, uint32_t aFlags)
 {
   MutexAutoLock lock(mMutex);
   nsTArray<TrackData> *track_data = (aFlags & ADDTRACK_QUEUED) ?
                                     &mPendingTracks : &mUpdateTracks;
   TrackData* data = track_data->AppendElement();
   data->mID = aID;
   data->mInputRate = aRate;
+  data->mResamplerChannelCount = 0;
   data->mStart = aStart;
   data->mEndOfFlushedData = aStart;
   data->mCommands = TRACK_CREATE;
   data->mData = aSegment;
   if (!(aFlags & ADDTRACK_QUEUED) && GraphImpl()) {
     GraphImpl()->EnsureNextIteration();
   }
 }