summaryrefslogtreecommitdiffstats
path: root/dom/media/ipc/VideoDecoderManagerParent.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-05-25 21:53:19 +0200
committerGitHub <noreply@github.com>2018-05-25 21:53:19 +0200
commitedccc615f9435d658febac9be2299542349e2b08 (patch)
treeca3fcaa2a72700b85221b2fe75bb7d46d5d424ce /dom/media/ipc/VideoDecoderManagerParent.cpp
parentb43a5fbedae602d0025ffdda8929e5bee9e2ca0b (diff)
parentf2d541d3ea44b56d3c4ce47fe7b326e58abc786f (diff)
downloadUXP-edccc615f9435d658febac9be2299542349e2b08.tar
UXP-edccc615f9435d658febac9be2299542349e2b08.tar.gz
UXP-edccc615f9435d658febac9be2299542349e2b08.tar.lz
UXP-edccc615f9435d658febac9be2299542349e2b08.tar.xz
UXP-edccc615f9435d658febac9be2299542349e2b08.zip
Merge pull request #385 from trav90/media-work
Fix null checks in dom/media
Diffstat (limited to 'dom/media/ipc/VideoDecoderManagerParent.cpp')
-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;
}