Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku

We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
This commit is contained in:
JW Wang 2016-07-27 10:52:01 +08:00
Родитель 661f07a5d4
Коммит 62af9d2687
1 изменённых файлов: 3 добавлений и 8 удалений

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

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