Bug 1297265: P11. Rework WMF Decoder use of InputExhausted. r?kamidphish draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 01 Sep 2016 19:43:16 +1000
changeset 408644 046e29f0a3eee2db0612bca3d45ba4493ea28859
parent 408643 047f9da4fd2578062f1b5967bde069bff67a345b
child 408645 adef06e6236ea9169a921a76fcd8c3a106abc0f8
push id28262
push userbmo:jyavenard@mozilla.com
push dateThu, 01 Sep 2016 12:26:45 +0000
reviewerskamidphish
bugs1297265
milestone51.0a1
Bug 1297265: P11. Rework WMF Decoder use of InputExhausted. r?kamidphish MozReview-Commit-ID: GX1izQd55Di
dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
--- a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
+++ b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
@@ -144,19 +144,17 @@ WMFMediaDataDecoder::ProcessOutput()
   RefPtr<MediaData> output;
   HRESULT hr = S_OK;
   while (SUCCEEDED(hr = mMFTManager->Output(mLastStreamOffset, output)) &&
          output) {
     mHasSuccessfulOutput = true;
     mCallback->Output(output);
   }
   if (hr == MF_E_TRANSFORM_NEED_MORE_INPUT) {
-    if (mTaskQueue->IsEmpty()) {
-      mCallback->InputExhausted();
-    }
+    mCallback->InputExhausted();
   } else if (FAILED(hr)) {
     NS_WARNING("WMFMediaDataDecoder failed to output data");
     mCallback->Error(MediaDataDecoderError::DECODE_ERROR);
     if (!mRecordedError) {
       SendTelemetry(hr);
       mRecordedError = true;
     }
   }