Bug 792935 - Restore correct playState after state machine initialization r=cpearce

This commit is contained in:
Steve Workman 2013-01-23 11:24:42 -08:00
parent 5bc80448f7
commit 8ca1ea4121

View File

@ -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);
}