Bug 1297265: P5. Rework Blank Decoder use of InputExhausted. r?kamidphish draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 01 Sep 2016 19:39:28 +1000
changeset 408638 b92ccba841487ea869a3a5cd22b5c63ff57aeb06
parent 408637 59649f21cc042565c0d86ead0da203c24bb659b1
child 408639 29ecc2232dd5fc1c24aae31b275c2d044b31111c
push id28262
push userbmo:jyavenard@mozilla.com
push dateThu, 01 Sep 2016 12:26:45 +0000
reviewerskamidphish
bugs1297265
milestone51.0a1
Bug 1297265: P5. Rework Blank Decoder use of InputExhausted. r?kamidphish MozReview-Commit-ID: KEfWo1cdRkG
dom/media/platforms/agnostic/BlankDecoderModule.cpp
--- a/dom/media/platforms/agnostic/BlankDecoderModule.cpp
+++ b/dom/media/platforms/agnostic/BlankDecoderModule.cpp
@@ -91,21 +91,17 @@ private:
     }
 
     // Frames come out in DTS order but we need to output them in PTS order.
     mReorderQueue.Push(aData);
 
     while (mReorderQueue.Length() > mMaxRefFrames) {
       mCallback->Output(mReorderQueue.Pop().get());
     }
-
-    if (mReorderQueue.Length() <= mMaxRefFrames) {
-      mCallback->InputExhausted();
-    }
-
+    mCallback->InputExhausted();
   }
 
 private:
   nsAutoPtr<BlankMediaDataCreator> mCreator;
   MediaDataDecoderCallback* mCallback;
   const uint32_t mMaxRefFrames;
   ReorderQueue mReorderQueue;
   TrackInfo::TrackType mType;