зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267936 - make a stronger assertion to catch that MediaDecoder is created when MediaShutdownManager::Shutdown() begins. r=jya.
MozReview-Commit-ID: K3OdjMFGEUF
This commit is contained in:
Родитель
6491a25e6f
Коммит
438a0405e7
|
@ -49,7 +49,7 @@ MediaShutdownManager::Instance()
|
||||||
void
|
void
|
||||||
MediaShutdownManager::EnsureCorrectShutdownObserverState()
|
MediaShutdownManager::EnsureCorrectShutdownObserverState()
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(!mIsDoingXPCOMShutDown);
|
MOZ_DIAGNOSTIC_ASSERT(!mIsDoingXPCOMShutDown);
|
||||||
bool needShutdownObserver = mDecoders.Count() > 0;
|
bool needShutdownObserver = mDecoders.Count() > 0;
|
||||||
if (needShutdownObserver != mIsObservingShutdown) {
|
if (needShutdownObserver != mIsObservingShutdown) {
|
||||||
mIsObservingShutdown = needShutdownObserver;
|
mIsObservingShutdown = needShutdownObserver;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче