mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 1188268 - Correct the logic against |MaybeStartPlayback()| due to rebase mistake. r=jwwang
--HG-- extra : histedit_source : bfd119cea6a3260cc241d33832c3289cb1cf5d22
This commit is contained in:
parent
838f525328
commit
79a6a46952
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user