Null check the right pointer in RecvReadback

This commit is contained in:
trav90 2018-05-25 10:34:21 -05:00 committed by Roy Tam
commit 46621ae3e3

View file

@ -194,7 +194,7 @@ VideoDecoderManagerParent::RecvReadback(const SurfaceDescriptorGPUVideo& aSD, Su
}
RefPtr<SourceSurface> source = image->GetAsSourceSurface();
if (!image) {
if (!source) {
*aResult = null_t();
return true;
}