mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
[WebRTC] Give ::Terminated() the same treatment as ::Close_g
This commit is contained in:
parent
74a4260ecd
commit
48c27934c7
1 changed files with 7 additions and 1 deletions
|
|
@ -527,10 +527,16 @@ WebrtcGmpVideoEncoder::Terminated()
|
|||
{
|
||||
LOGD(("GMP Encoder Terminated: %p", (void *)this));
|
||||
|
||||
mGMP->Close();
|
||||
GMPVideoEncoderProxy* gmp(mGMP);
|
||||
mGMP = nullptr;
|
||||
mHost = nullptr;
|
||||
mInitting = false;
|
||||
|
||||
if (gmp) {
|
||||
// Do this last, since this could cause us to be destroyed
|
||||
gmp->Close();
|
||||
}
|
||||
|
||||
// Could now notify that it's dead
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue