Backed out changeset 2931db85cc99 (bug 1289976)

This commit is contained in:
Carsten "Tomcat" Book 2016-07-30 19:52:26 +02:00
Родитель 1f40b92079
Коммит e880c3527f
1 изменённых файлов: 8 добавлений и 3 удалений

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

@ -386,11 +386,16 @@ void
MediaDecoder::StartDormantTimer()
{
MOZ_ASSERT(NS_IsMainThread());
if (!IsHeuristicDormantSupported()) {
return;
}
if (!IsHeuristicDormantSupported() ||
mIsHeuristicDormant ||
if (mIsHeuristicDormant ||
IsShutdown() ||
mIsVisible ||
(mPlayState != PLAY_STATE_PAUSED && !IsEnded())) {
(mPlayState != PLAY_STATE_PAUSED &&
!IsEnded()))
{
return;
}