зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1325905. Part 5 - let DecodingFirstFrameState override Handle{Audio,Video}Waited. r=kaku
We want to call Request{Audio,Video}Data() instead of Ensure{Audio,Video}DecodeTaskQueued which checks mState and breaks the encapsulation of the state objects. MozReview-Commit-ID: 5oydItSvnMF --HG-- extra : rebase_source : 5da4ad2f0fbf010a78c6b4e7cbab70378a002758 extra : intermediate-source : 0a882fb53fd51a71f9a3914074e9020d4eb87c4f extra : source : 9927e37c9383e9204cbaf1b0dbc6fbfdff48df82
This commit is contained in:
Родитель
5f9c0a1f53
Коммит
354ad927a8
|
@ -500,6 +500,16 @@ public:
|
|||
void HandleAudioNotDecoded(const MediaResult& aError) override;
|
||||
void HandleVideoNotDecoded(const MediaResult& aError) override;
|
||||
|
||||
void HandleAudioWaited(MediaData::Type aType) override
|
||||
{
|
||||
mMaster->RequestAudioData();
|
||||
}
|
||||
|
||||
void HandleVideoWaited(MediaData::Type aType) override
|
||||
{
|
||||
mMaster->RequestVideoData(false, media::TimeUnit());
|
||||
}
|
||||
|
||||
void HandleVideoSuspendTimeout() override
|
||||
{
|
||||
// Do nothing for we need to decode the 1st video frame to get the dimensions.
|
||||
|
|
Загрузка…
Ссылка в новой задаче