зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1582353 - P2. Remove unused variable. r=mattwoodrow
The MediaResult object isn't used; no need to set a crash timestamp on it. Differential Revision: https://phabricator.services.mozilla.com/D47039 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
301e1cb659
Коммит
da5a007438
|
@ -249,13 +249,8 @@ RefPtr<ShutdownPromise> RemoteDecoderChild::Shutdown() {
|
|||
AssertOnManagerThread();
|
||||
mInitPromise.RejectIfExists(NS_ERROR_DOM_MEDIA_CANCELED, __func__);
|
||||
mInitialized = false;
|
||||
if (mNeedNewDecoder) {
|
||||
MediaResult error(NS_ERROR_DOM_MEDIA_NEED_NEW_DECODER);
|
||||
error.SetGPUCrashTimeStamp(mRemoteProcessCrashTime);
|
||||
return ShutdownPromise::CreateAndResolve(true, __func__);
|
||||
}
|
||||
if (!mCanSend) {
|
||||
return ShutdownPromise::CreateAndResolve(true, __func__);
|
||||
if (mNeedNewDecoder || !mCanSend) {
|
||||
return mozilla::ShutdownPromise::CreateAndResolve(true, __func__);
|
||||
}
|
||||
SendShutdown();
|
||||
MOZ_ASSERT(!mShutdownSelfRef);
|
||||
|
|
Загрузка…
Ссылка в новой задаче