Bug 1995686 - Pass copies to SendCaptureEnded. r=jib,grulja a=RyanVM
This commit is contained in:
committed by
rvandermeulen@mozilla.com
parent
0a0e35c404
commit
3f6ceff21f
@@ -336,7 +336,9 @@ void CallbackHelper::OnCaptureEnded() {
|
||||
nsIEventTarget* target = mParent->GetBackgroundEventTarget();
|
||||
|
||||
MOZ_ALWAYS_SUCCEEDS(target->Dispatch(NS_NewRunnableFunction(
|
||||
__func__, [&] { Unused << mParent->SendCaptureEnded(mStreamId); })));
|
||||
__func__, [parent = RefPtr(mParent), id = mStreamId] {
|
||||
Unused << parent->SendCaptureEnded(id);
|
||||
})));
|
||||
}
|
||||
|
||||
void CallbackHelper::OnFrame(const webrtc::VideoFrame& aVideoFrame) {
|
||||
|
||||
Reference in New Issue
Block a user