Bug 1298217. Part 9 - Assert |mState == DECODER_STATE_DECODING| in MaybeStartBuffering() which is only called in the DECODER_STATE_DECODING case of RunStateMachine(). r=kaku

MozReview-Commit-ID: KLz8CpxDz71

--HG--
extra : rebase_source : 5ceea28dce4772bbd591f6d52b868c42dec7ca70
This commit is contained in:
JW Wang 2016-08-26 06:31:57 +12:00
Родитель caab92744a
Коммит 17a06a9459
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -976,9 +976,9 @@ void
MediaDecoderStateMachine::MaybeStartBuffering()
{
MOZ_ASSERT(OnTaskQueue());
MOZ_ASSERT(mState == DECODER_STATE_DECODING);
if (mState == DECODER_STATE_DECODING &&
mPlayState == MediaDecoder::PLAY_STATE_PLAYING &&
if (mPlayState == MediaDecoder::PLAY_STATE_PLAYING &&
mResource->IsExpectingMoreData()) {
bool shouldBuffer;
if (mReader->UseBufferingHeuristics()) {