Bug 1881445 - Fix non-unified build error in video_capture_avfoundation.mm. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D202516
This commit is contained in:
Jan-Ivar Bruaroey 2024-02-22 22:49:16 +00:00
parent c1cf4b84d8
commit aa9ae27229

View File

@ -88,10 +88,11 @@ AVCaptureDeviceFormat* _Nullable FindFormat(
- (void)capturer:(RTCVideoCapturer* _Nonnull)capturer
didCaptureVideoFrame:(RTCVideoFrame* _Nonnull)frame {
scoped_refptr<webrtc::videocapturemodule::VideoCaptureAvFoundation> cap;
webrtc::scoped_refptr<webrtc::videocapturemodule::VideoCaptureAvFoundation>
cap;
{
webrtc::MutexLock lock(&_mutex);
cap = scoped_refptr(_capturer);
cap = webrtc::scoped_refptr(_capturer);
}
if (!cap) return;
cap->OnFrame(frame);