mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1305320 - Check if the PVideoDecoderManagerChild enpoint is valid before using it. r=dvander
This commit is contained in:
parent
a28cb744aa
commit
204ff6e189
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user