summaryrefslogtreecommitdiffstats
path: root/dom/media
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-05-25 10:34:21 -0500
committertrav90 <travawine@palemoon.org>2018-05-25 10:34:21 -0500
commit6ca361bd5b2394b2613ac0f67cf87723ecad4501 (patch)
treeb46cd782db49bc8994e1f1fe3602c099dca9820a /dom/media
parent43470083d171c9f11cbbda954920ad8eafdcaaf3 (diff)
downloadUXP-6ca361bd5b2394b2613ac0f67cf87723ecad4501.tar
UXP-6ca361bd5b2394b2613ac0f67cf87723ecad4501.tar.gz
UXP-6ca361bd5b2394b2613ac0f67cf87723ecad4501.tar.lz
UXP-6ca361bd5b2394b2613ac0f67cf87723ecad4501.tar.xz
UXP-6ca361bd5b2394b2613ac0f67cf87723ecad4501.zip
Null check the right pointer in RecvReadback
Diffstat (limited to 'dom/media')
-rw-r--r--dom/media/ipc/VideoDecoderManagerParent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/media/ipc/VideoDecoderManagerParent.cpp b/dom/media/ipc/VideoDecoderManagerParent.cpp
index a111b5e53..4ff9acf19 100644
--- a/dom/media/ipc/VideoDecoderManagerParent.cpp
+++ b/dom/media/ipc/VideoDecoderManagerParent.cpp
@@ -194,7 +194,7 @@ VideoDecoderManagerParent::RecvReadback(const SurfaceDescriptorGPUVideo& aSD, Su
}
RefPtr<SourceSurface> source = image->GetAsSourceSurface();
- if (!image) {
+ if (!source) {
*aResult = null_t();
return true;
}