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:
JW Wang 2017-01-09 15:48:00 +08:00
Родитель 982fb8390e
Коммит 703766cdd0
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -192,8 +192,14 @@ public:
// Event handlers for various events. // Event handlers for various events.
virtual void HandleCDMProxyReady() {} virtual void HandleCDMProxyReady() {}
virtual void HandleAudioDecoded(MediaData* aAudio) {} virtual void HandleAudioDecoded(MediaData* aAudio)
virtual void HandleVideoDecoded(MediaData* aVideo, TimeStamp aDecodeStart) {} {
Crash("Unexpected event!", __func__);
}
virtual void HandleVideoDecoded(MediaData* aVideo, TimeStamp aDecodeStart)
{
Crash("Unexpected event!", __func__);
}
virtual void HandleAudioWaited(MediaData::Type aType); virtual void HandleAudioWaited(MediaData::Type aType);
virtual void HandleVideoWaited(MediaData::Type aType); virtual void HandleVideoWaited(MediaData::Type aType);
virtual void HandleNotWaited(const WaitForDataRejectValue& aRejection); virtual void HandleNotWaited(const WaitForDataRejectValue& aRejection);