Bug 1341200. Part 4 - remove the check that is unnecessary. draft
authorJW Wang <jwwang@mozilla.com>
Fri, 24 Feb 2017 17:24:41 +0800
changeset 493136 b80c6442232caa0a2099219f923aba4003761c96
parent 493135 1b4303b2ac289f6ab1d86f3ce9dd0d00caf672dc
child 493137 6506584e81ed12abe96c56a79448e4c2fecc266b
push id47651
push userjwwang@mozilla.com
push dateFri, 03 Mar 2017 09:41:12 +0000
bugs1341200
milestone54.0a1
Bug 1341200. Part 4 - remove the check that is unnecessary. MozReview-Commit-ID: FC0IkPE4EcR
dom/media/MediaFormatReader.h
--- a/dom/media/MediaFormatReader.h
+++ b/dom/media/MediaFormatReader.h
@@ -350,17 +350,17 @@ private:
       mDecodeRequest.DisconnectIfExists();
       mDrainRequest.DisconnectIfExists();
       mDrainState = DrainState::None;
       CancelWaitingForKey();
       mOutput.Clear();
       mNumSamplesInput = 0;
       mNumSamplesOutput = 0;
       mSizeOfQueue = 0;
-      if (mDecoder && !mFlushed) {
+      if (mDecoder) {
         RefPtr<MediaFormatReader> owner = mOwner;
         TrackType type = mType == MediaData::AUDIO_DATA
                          ? TrackType::kAudioTrack
                          : TrackType::kVideoTrack;
         mFlushing = true;
         mDecoder->Flush()
           ->Then(mOwner->OwnerThread(), __func__,
                  [owner, type, this]() {