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:
JW Wang 2016-04-29 10:18:35 +08:00
Родитель 6491a25e6f
Коммит 438a0405e7
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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;