Bug 1305320 - Check if the PVideoDecoderManagerChild enpoint is valid before using it. r=dvander

This commit is contained in:
Matt Woodrow 2016-09-27 14:11:31 +13:00
parent a28cb744aa
commit 204ff6e189

View File

@ -52,9 +52,9 @@ VideoDecoderManagerChild::Initialize()
return;
}
// TODO: The above message should return an empty endpoint if there wasn't a GPU
// process. Unfortunately IPDL will assert in this case, so it can't actually
// happen. Bug 1302009 is filed for fixing this.
if (!endpoint.IsValid()) {
return;
}
sDecoderManager = new VideoDecoderManagerChild();