зеркало из https://github.com/mozilla/gecko-dev.git
Bug 792935 - Restore correct playState after state machine initialization r=cpearce
This commit is contained in:
Родитель
f38b11cfe2
Коммит
ce4a2eb977
|
@ -631,6 +631,12 @@ DASHDecoder::LoadRepresentations()
|
|||
mVideoRepDecoders[i]->SetStateMachine(mDecoderStateMachine);
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure decoder is set to play if its already been requested.
|
||||
if (mPlayState == PLAY_STATE_PLAYING) {
|
||||
mNextState = PLAY_STATE_PLAYING;
|
||||
}
|
||||
|
||||
// Now that subreaders are init'd, it's ok to init state machine.
|
||||
return InitializeStateMachine(nullptr);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче