зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1290780. Part 3 - Assert IsShutdown() is false in UpdateLogicalPositionInternal(). r=kaku
1. It is called from OnSeekResolved() which asserts !IsShutdown(). 2. It is called from UpdateLogicalPosition which asserts !IsShutdown(). MozReview-Commit-ID: J8iuHdUamLS --HG-- extra : rebase_source : 97215383aa7c409f8b63f5a6726b81df53252227
This commit is contained in:
Родитель
b6a261b9f3
Коммит
3d1ea356e3
|
@ -1342,9 +1342,7 @@ void
|
|||
MediaDecoder::UpdateLogicalPositionInternal(MediaDecoderEventVisibility aEventVisibility)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
if (IsShutdown()) {
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(!IsShutdown());
|
||||
|
||||
double currentPosition = static_cast<double>(CurrentPosition()) / static_cast<double>(USECS_PER_S);
|
||||
bool logicalPositionChanged = mLogicalPosition != currentPosition;
|
||||
|
|
Загрузка…
Ссылка в новой задаче