summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-06 11:25:57 +0000
committerMoonchild <moonchild@palemoon.org>2021-10-06 11:25:57 +0000
commit14e7624cf08b65441a37c47b8e56d083db164091 (patch)
tree324d89553344984b7efac4a7eae43d9cb3f7fd18 /media
parentb4b968bc563d2add53172804e06d70b07828e659 (diff)
downloadaura-central-14e7624cf08b65441a37c47b8e56d083db164091.tar.gz
[WebRTC] Clean up encode callback during GMP release.
Diffstat (limited to 'media')
-rw-r--r--media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp
index ad47e5316..3b485372f 100644
--- a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp
+++ b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.cpp
@@ -472,6 +472,7 @@ int32_t
WebrtcGmpVideoEncoder::ReleaseGmp()
{
LOGD(("GMP Released:"));
+ RegisterEncodeCompleteCallback(nullptr);
if (mGMPThread) {
mGMPThread->Dispatch(
WrapRunnableNM(&WebrtcGmpVideoEncoder::ReleaseGmp_g,