Bug 1330889. Part 4 - remove the mState checks from MaybeStartPlayback().
The same reason as P2.
MozReview-Commit-ID: GqWgiXjlTrb
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2763,18 +2763,16 @@ MediaDecoderStateMachine::StopPlayback()
}
}
void MediaDecoderStateMachine::MaybeStartPlayback()
{
MOZ_ASSERT(OnTaskQueue());
// Should try to start playback only after decoding first frames.
MOZ_ASSERT(mSentFirstFrameLoadedEvent);
- MOZ_ASSERT(mState == DECODER_STATE_DECODING ||
- mState == DECODER_STATE_COMPLETED);
if (IsPlaying()) {
// Logging this case is really spammy - don't do it.
return;
}
if (mPlayState != MediaDecoder::PLAY_STATE_PLAYING) {
DECODER_LOG("Not starting playback [mPlayState=%d]", mPlayState.Ref());