mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
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:
parent
c1cf4b84d8
commit
aa9ae27229
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user