diff --git a/dom/media/MediaDecoderStateMachine.cpp b/dom/media/MediaDecoderStateMachine.cpp index bb8ce66c37f2..3492db7e5f91 100644 --- a/dom/media/MediaDecoderStateMachine.cpp +++ b/dom/media/MediaDecoderStateMachine.cpp @@ -2353,12 +2353,12 @@ nsresult MediaDecoderStateMachine::RunStateMachine() // Play the remaining media. We want to run AdvanceFrame() at least // once to ensure the current playback position is advanced to the // end of the media, and so that we update the readyState. - MaybeStartPlayback(); if (VideoQueue().GetSize() > 1 || (HasAudio() && !mAudioCompleted) || (mAudioCaptured && !mDecodedStream->IsFinished())) { // Start playback if necessary to play the remaining media. + MaybeStartPlayback(); UpdateRenderedVideoFrames(); NS_ASSERTION(!IsPlaying() || mLogicallySeeking ||