Skip to content

Commit

Permalink
Bug 1146874 Part 2: Add new nspr logging in GMPParent when process fa…
Browse files Browse the repository at this point in the history
…ils to launch. r=cpearce
  • Loading branch information
bobowen committed May 11, 2015
1 parent bd53d81 commit 00483a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dom/media/gmp/GMPParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ GMPParent::LoadProcess()
if (!mProcess) {
mProcess = new GMPProcessParent(NS_ConvertUTF16toUTF8(path).get());
if (!mProcess->Launch(30 * 1000)) {
LOGD("%s: Failed to launch new child process", __FUNCTION__);
mProcess->Delete();
mProcess = nullptr;
return NS_ERROR_FAILURE;
Expand All @@ -147,16 +148,17 @@ GMPParent::LoadProcess()
#ifdef PR_LOGGING
mChildPid = base::GetProcId(mProcess->GetChildProcessHandle());
#endif
LOGD("%s: Launched new child process", __FUNCTION__);

bool opened = Open(mProcess->GetChannel(),
base::GetProcId(mProcess->GetChildProcessHandle()));
if (!opened) {
LOGD("%s: Failed to create new child process", __FUNCTION__);
LOGD("%s: Failed to open channel to new child process", __FUNCTION__);
mProcess->Delete();
mProcess = nullptr;
return NS_ERROR_FAILURE;
}
LOGD("%s: Created new child process", __FUNCTION__);
LOGD("%s: Opened channel to new child process", __FUNCTION__);

bool ok = SendSetNodeId(mNodeId);
if (!ok) {
Expand Down

0 comments on commit 00483a1

Please sign in to comment.