Bug 1310140. Part 8 - add CompletedState::HandleVideoSuspendTimeout().
MozReview-Commit-ID: LOrecImz2Cr
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -905,16 +905,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: