Bug 1325905. Part 6 - let DecodingFirstFrameState::Enter() call Request{Audio,Video} instead. r=kaku

MozReview-Commit-ID: AH1F9hMJorM

--HG--
extra : rebase_source : ffd3b9711fa7be5db2445b75a7e875bd6b44c1b5
extra : intermediate-source : 1477500ceba6772fe5b93f318f1a13f03d3dff03
extra : source : 240f60c1c35b92facdec77f22022fed4babf4f84
This commit is contained in:
JW Wang 2016-12-22 04:32:47 +08:00
Родитель 354ad927a8
Коммит 2942cc95b4
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -1907,7 +1907,12 @@ DecodingFirstFrameState::Enter()
MOZ_ASSERT(!mMaster->mVideoDecodeSuspended);
// Dispatch tasks to decode first frames.
mMaster->DispatchDecodeTasksIfNeeded();
if (mMaster->HasAudio()) {
mMaster->RequestAudioData();
}
if (mMaster->HasVideo()) {
mMaster->RequestVideoData(false, media::TimeUnit());
}
}
void