From 6ca361bd5b2394b2613ac0f67cf87723ecad4501 Mon Sep 17 00:00:00 2001 From: trav90 Date: Fri, 25 May 2018 10:34:21 -0500 Subject: Null check the right pointer in RecvReadback --- dom/media/ipc/VideoDecoderManagerParent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom/media/ipc') 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 source = image->GetAsSourceSurface(); - if (!image) { + if (!source) { *aResult = null_t(); return true; } -- cgit v1.2.3 From f2d541d3ea44b56d3c4ce47fe7b326e58abc786f Mon Sep 17 00:00:00 2001 From: trav90 Date: Fri, 25 May 2018 10:35:10 -0500 Subject: Revoke MediaDataDecoder callback after RemoteVideoDecoder has been shut down --- dom/media/ipc/VideoDecoderChild.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'dom/media/ipc') diff --git a/dom/media/ipc/VideoDecoderChild.cpp b/dom/media/ipc/VideoDecoderChild.cpp index d1b1d23fc..f01d3c659 100644 --- a/dom/media/ipc/VideoDecoderChild.cpp +++ b/dom/media/ipc/VideoDecoderChild.cpp @@ -238,6 +238,7 @@ VideoDecoderChild::Shutdown() SendShutdown(); } mInitialized = false; + mCallback = nullptr; } bool -- cgit v1.2.3