Bug 1811641 - [libwebrtc] Unset output delegate before stopping. r=webrtc-reviewers,dbaker

This is similar to what the old backend does when stopping. Given that we do not
fully understand the failure mode yet, this is a speculative fix.

Differential Revision: https://phabricator.services.mozilla.com/D169448
This commit is contained in:
Andreas Pehrson 2023-02-10 20:45:42 +00:00
parent ee5fcfbebe
commit be514fa473

View file

@ -205,6 +205,7 @@ const int64_t kNanosecondsPerSecond = 1000000000;
for (AVCaptureDeviceInput *oldInput in [self.captureSession.inputs copy]) {
[self.captureSession removeInput:oldInput];
}
[_videoDataOutput setSampleBufferDelegate:nil queue:nil];
[self.captureSession stopRunning];
#if TARGET_OS_IPHONE