Bug 1310140. Part 3 - add WaitForCDMState::HandleVideoSuspendTimeout(). draft
authorJW Wang <jwwang@mozilla.com>
Tue, 18 Oct 2016 10:33:37 +0800
changeset 426828 dfe4d7d41de77e54a626fbfecc230535b97f76ad
parent 426827 ce378c26fa83b56c3ea57c0a810b2be3a1650e84
child 426829 92c5f64d197f68c1e868e8017be21a9e6e1de996
push id32814
push userjwwang@mozilla.com
push dateWed, 19 Oct 2016 06:32:41 +0000
bugs1310140
milestone52.0a1
Bug 1310140. Part 3 - add WaitForCDMState::HandleVideoSuspendTimeout(). MozReview-Commit-ID: 9fPBDrt8Tgi
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -362,16 +362,21 @@ public:
   RefPtr<MediaDecoder::SeekPromise> HandleSeek(SeekTarget aTarget) override
   {
     SLOG("Not Enough Data to seek at this stage, queuing seek");
     mMaster->mQueuedSeek.RejectIfExists(__func__);
     mMaster->mQueuedSeek.mTarget = aTarget;
     return mMaster->mQueuedSeek.mPromise.Ensure(__func__);
   }
 
+  void HandleVideoSuspendTimeout() override
+  {
+    // Do nothing since no decoders are created yet.
+  }
+
 private:
   bool mPendingDormant = false;
 };
 
 class MediaDecoderStateMachine::DormantState
   : public MediaDecoderStateMachine::StateObject
 {
 public: