зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1726024 - Use MustGetShutdownBarrier in MediaManager. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D123002
This commit is contained in:
Родитель
105ae13756
Коммит
eb55d7f7d1
|
@ -2124,7 +2124,7 @@ MediaManager* MediaManager::Get() {
|
|||
};
|
||||
|
||||
sSingleton->mShutdownBlocker = new Blocker();
|
||||
nsresult rv = media::GetShutdownBarrier()->AddBlocker(
|
||||
nsresult rv = media::MustGetShutdownBarrier()->AddBlocker(
|
||||
sSingleton->mShutdownBlocker, NS_LITERAL_STRING_FROM_CSTRING(__FILE__),
|
||||
__LINE__, u""_ns);
|
||||
MOZ_RELEASE_ASSERT(NS_SUCCEEDED(rv));
|
||||
|
@ -3611,7 +3611,7 @@ void MediaManager::Shutdown() {
|
|||
"singleton and thread");
|
||||
StaticMutexAutoLock lock(sSingletonMutex);
|
||||
// Remove async shutdown blocker
|
||||
media::GetShutdownBarrier()->RemoveBlocker(
|
||||
media::MustGetShutdownBarrier()->RemoveBlocker(
|
||||
sSingleton->mShutdownBlocker);
|
||||
|
||||
sSingleton = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче