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

--HG--
extra : histedit_source : bfd119cea6a3260cc241d33832c3289cb1cf5d22
This commit is contained in:
Kilik Kuo 2015-08-27 14:20:18 +08:00
parent 838f525328
commit 79a6a46952

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