mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237174 - Remove the unnecessary code since mState won't change in the case of DECODER_STATE_COMPLETED. r=bechen.
This commit is contained in:
parent
554b4b7a1b
commit
512004fc5b
@ -2352,13 +2352,6 @@ nsresult MediaDecoderStateMachine::RunStateMachine()
|
||||
// is restarted correctly.
|
||||
StopPlayback();
|
||||
|
||||
if (mState != DECODER_STATE_COMPLETED) {
|
||||
// While we're presenting a frame we can change state. Whatever changed
|
||||
// our state should have scheduled another state machine run.
|
||||
NS_ASSERTION(IsStateMachineScheduled(), "Must have timer scheduled");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (mPlayState == MediaDecoder::PLAY_STATE_PLAYING &&
|
||||
!mSentPlaybackEndedEvent)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user