Bug 1310140. Part 8 - add CompletedState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
authorJW Wang <jwwang@mozilla.com>
Tue, 18 Oct 2016 10:54:39 +0800
changeset 318476 95cf675aed1fcae6f98fdde3348f6376a55ef393
parent 318475 d4a4999dcf1571a6be82e6fea3cc97072206a3d0
child 318477 d2870b4ff3d0fa374cb30144dd22cc318b86ee31
push idunknown
push userunknown
push dateunknown
reviewerskaku, kamidphish
bugs1310140
milestone52.0a1
Bug 1310140. Part 8 - add CompletedState::HandleVideoSuspendTimeout(). r=kaku,kamidphish MozReview-Commit-ID: LOrecImz2Cr
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -902,16 +902,21 @@ public:
 
   bool HandleAudioCaptured() override
   {
     // MediaSink is changed. Schedule Step() to check if we can start playback.
     mMaster->ScheduleStateMachine();
     return true;
   }
 
+  void HandleVideoSuspendTimeout() override
+  {
+    // Do nothing since no decoding is going on.
+  }
+
 private:
   bool mSentPlaybackEndedEvent = false;
 };
 
 class MediaDecoderStateMachine::ShutdownState
   : public MediaDecoderStateMachine::StateObject
 {
 public: