Bug 1243627 - FFVPXRuntimeLinker::Init() should set sLinkStatus to LinkStatus_FAILED before returning false. r=jya.

This commit is contained in:
JW Wang 2016-01-29 10:47:32 +08:00
Родитель 153a7e3ce1
Коммит dafc0fc42b
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -43,6 +43,7 @@ FFVPXRuntimeLinker::Init()
}
MOZ_ASSERT(NS_IsMainThread());
sLinkStatus = LinkStatus_FAILED;
// We retrieve the path of the XUL library as this is where mozavcodec and
// mozavutil libs are located.
@ -85,8 +86,6 @@ FFVPXRuntimeLinker::Init()
sLinkStatus = LinkStatus_SUCCEEDED;
return true;
}
sLinkStatus = LinkStatus_FAILED;
return false;
}