Bug 1297265: P4. Rework Apple AudioToolbox use of InputExhausted. r=kamidphish
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 01 Sep 2016 19:38:37 +1000
changeset 353537 ad81e05890aab70639724d8c318f5090ab08587d
parent 353536 9f88eccfceaf51ad877271ec667bb71d9011a669
child 353538 110bb999d8d47b9e71b2ce27429fcd98cf14d70b
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskamidphish
bugs1297265
milestone51.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 1297265: P4. Rework Apple AudioToolbox use of InputExhausted. r=kamidphish MozReview-Commit-ID: HznYxl9T7t5
dom/media/platforms/apple/AppleATDecoder.cpp
--- a/dom/media/platforms/apple/AppleATDecoder.cpp
+++ b/dom/media/platforms/apple/AppleATDecoder.cpp
@@ -210,20 +210,17 @@ AppleATDecoder::SubmitSample(MediaRawDat
       if (NS_FAILED(DecodeSample(mQueuedSamples[i]))) {
         mQueuedSamples.Clear();
         mCallback->Error(MediaDataDecoderError::DECODE_ERROR);
         return;
       }
     }
     mQueuedSamples.Clear();
   }
-
-  if (mTaskQueue->IsEmpty()) {
-    mCallback->InputExhausted();
-  }
+  mCallback->InputExhausted();
 }
 
 nsresult
 AppleATDecoder::DecodeSample(MediaRawData* aSample)
 {
   MOZ_ASSERT(mTaskQueue->IsCurrentThreadIn());
 
   // Array containing the queued decoded audio frames, about to be output.