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
Родитель a28cb744aa
Коммит 204ff6e189
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -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();