Bug 962385 - Minor GCC compilation fix.
authorJacek Caban <jacek@codeweavers.com>
Fri, 07 Feb 2014 12:51:34 +0100
changeset 185750 30831efd61f0c8f4fda385f2fb099872881d85fa
parent 185749 4877ea30474fda039ebac8c638f6fa6583e78dc9
child 185751 ba58374ea933bcbf72ffc5b10dec1a2f3e7af467
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs962385
milestone30.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 962385 - Minor GCC compilation fix.
content/media/fmp4/MP4Reader.cpp
--- a/content/media/fmp4/MP4Reader.cpp
+++ b/content/media/fmp4/MP4Reader.cpp
@@ -335,17 +335,17 @@ MP4Reader::Decode(TrackType aTrack)
     // out output we've received. We always try to keep the decoder busy if
     // possible, so we try to maintain at least a few input samples ahead,
     // if we need output.
     while (prevNumFramesOutput == data.mNumSamplesOutput &&
            (data.mInputExhausted ||
            (data.mNumSamplesInput - data.mNumSamplesOutput) < data.mDecodeAhead)) {
       data.mMonitor.AssertCurrentThreadOwns();
       data.mMonitor.Unlock();
-      nsAutoPtr<MP4Sample> compressed = PopSample(aTrack);
+      nsAutoPtr<MP4Sample> compressed(PopSample(aTrack));
       if (!compressed) {
         // EOS, or error. Let the state machine know there are no more
         // frames coming.
         return false;
       }
       data.mMonitor.Lock();
       data.mInputExhausted = false;
       data.mNumSamplesInput++;