зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1329891. Part 6 - default HandleWaitingFor{Audio,Video} to crash. r=kikuo
States that expect this event should override the function. MozReview-Commit-ID: AmqktrDyVH5 --HG-- extra : rebase_source : 610dec3def2944c6234fd18cf71d9ee02998ad4d extra : intermediate-source : 28ed7fa9991588b4ba131856cab0ff239f0b24e5 extra : source : 6e5d3a1d32985b6eba449f76e99538b0589bd200
This commit is contained in:
Родитель
9357fc0732
Коммит
a7b9a8665e
|
@ -192,6 +192,7 @@ public:
|
|||
|
||||
// Event handlers for various events.
|
||||
virtual void HandleCDMProxyReady() {}
|
||||
virtual void HandleAudioCaptured() {}
|
||||
virtual void HandleAudioDecoded(MediaData* aAudio)
|
||||
{
|
||||
Crash("Unexpected event!", __func__);
|
||||
|
@ -208,13 +209,10 @@ public:
|
|||
{
|
||||
Crash("Unexpected event!", __func__);
|
||||
}
|
||||
virtual void HandleAudioCaptured() {}
|
||||
|
||||
virtual void HandleWaitingForAudio()
|
||||
{
|
||||
mMaster->WaitForData(MediaData::AUDIO_DATA);
|
||||
Crash("Unexpected event!", __func__);
|
||||
}
|
||||
|
||||
virtual void HandleAudioCanceled()
|
||||
{
|
||||
Crash("Unexpected event!", __func__);
|
||||
|
@ -223,12 +221,10 @@ public:
|
|||
{
|
||||
Crash("Unexpected event!", __func__);
|
||||
}
|
||||
|
||||
virtual void HandleWaitingForVideo()
|
||||
{
|
||||
mMaster->WaitForData(MediaData::VIDEO_DATA);
|
||||
Crash("Unexpected event!", __func__);
|
||||
}
|
||||
|
||||
virtual void HandleVideoCanceled()
|
||||
{
|
||||
Crash("Unexpected event!", __func__);
|
||||
|
@ -1663,6 +1659,16 @@ public:
|
|||
mMaster->EnsureVideoDecodeTaskQueued();
|
||||
}
|
||||
|
||||
void HandleWaitingForAudio() override
|
||||
{
|
||||
mMaster->WaitForData(MediaData::AUDIO_DATA);
|
||||
}
|
||||
|
||||
void HandleWaitingForVideo() override
|
||||
{
|
||||
mMaster->WaitForData(MediaData::VIDEO_DATA);
|
||||
}
|
||||
|
||||
void HandleAudioWaited(MediaData::Type aType) override
|
||||
{
|
||||
mMaster->EnsureAudioDecodeTaskQueued();
|
||||
|
|
Загрузка…
Ссылка в новой задаче