зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1329891. Part 2 - default Handle{Audio,Video}Decoded to crash. r=kikuo
States expect this event should override this function. MozReview-Commit-ID: 8Y4ngn4X7MS --HG-- extra : rebase_source : 705affda97d3ee919f560a76c3858fa3564bfbe4 extra : intermediate-source : 9139df5e241af72bc75544ae3d1df27a7cc514aa extra : source : b7c803ea73a1b1af0ee40a64d7710c52186c3c25
This commit is contained in:
Родитель
982fb8390e
Коммит
703766cdd0
|
@ -192,8 +192,14 @@ public:
|
|||
|
||||
// Event handlers for various events.
|
||||
virtual void HandleCDMProxyReady() {}
|
||||
virtual void HandleAudioDecoded(MediaData* aAudio) {}
|
||||
virtual void HandleVideoDecoded(MediaData* aVideo, TimeStamp aDecodeStart) {}
|
||||
virtual void HandleAudioDecoded(MediaData* aAudio)
|
||||
{
|
||||
Crash("Unexpected event!", __func__);
|
||||
}
|
||||
virtual void HandleVideoDecoded(MediaData* aVideo, TimeStamp aDecodeStart)
|
||||
{
|
||||
Crash("Unexpected event!", __func__);
|
||||
}
|
||||
virtual void HandleAudioWaited(MediaData::Type aType);
|
||||
virtual void HandleVideoWaited(MediaData::Type aType);
|
||||
virtual void HandleNotWaited(const WaitForDataRejectValue& aRejection);
|
||||
|
|
Загрузка…
Ссылка в новой задаче