Bug 1188268 - Correct the logic against |MaybeStartPlayback()| due to rebase mistake. r=jwwang

This commit is contained in:
Kilik Kuo 2015-08-27 14:20:18 +08:00
parent 79cc96f7f0
commit b0feb69df2

View File

@ -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 ||