void MediaDecoder::DormantTimerExpired(nsITimer* aTimer, void* aClosure) { MOZ_ASSERT(aClosure); MediaDecoder* decoder = static_cast<MediaDecoder*>(aClosure); ReentrantMonitorAutoEnter mon(decoder->GetReentrantMonitor()); decoder->UpdateDormantState(true /* aDormantTimeout */, false /* aActivity */); }
void MediaDecoder::DormantTimerExpired(nsITimer* aTimer, void* aClosure) { MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(aClosure); MediaDecoder* decoder = static_cast<MediaDecoder*>(aClosure); decoder->UpdateDormantState(true /* aDormantTimeout */, false /* aActivity */); }