зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
661f07a5d4
Коммит
62af9d2687
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче