Bug 1341200. Part 4 - remove the check that is unnecessary. r=jya
authorJW Wang <jwwang@mozilla.com>
Fri, 24 Feb 2017 17:24:41 +0800
changeset 374856 e353098c37d208361b46fd8cb9fb32be87c0d6d6
parent 374855 5f0dca380e8448d3f82becbd0947933b1c7769f5
child 374857 fb30eeb72b852d51693cefcb5ab899540327fff3
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1341200
milestone54.0a1
Bug 1341200. Part 4 - remove the check that is unnecessary. r=jya 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]() {