summaryrefslogtreecommitdiff
path: root/media/webrtc
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-06 11:25:57 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 14:40:31 +0200
commite4c6db86b806a9b7b11b94323189954736d45a67 (patch)
treebe98b9ec8d598872c2ae62efcd2d2f4b3abbe584 /media/webrtc
parenta7b63631b0e84c9a5ab1ef266f8f5e26c0f62d6a (diff)
downloaduxp-e4c6db86b806a9b7b11b94323189954736d45a67.tar.gz
[WebRTC] Clean up encode callback during GMP release.
Diffstat (limited to 'media/webrtc')
-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 ad47e5316c..3b485372f2 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,