Bug 1726024 - Use MustGetShutdownBarrier in MediaManager. r=jib

Differential Revision: https://phabricator.services.mozilla.com/D123002
This commit is contained in:
Bryce Seager van Dyk 2021-08-26 18:37:02 +00:00
Родитель 105ae13756
Коммит eb55d7f7d1
1 изменённых файлов: 2 добавлений и 2 удалений

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

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