Loading
Bug 1817724 - Clean up and tighten VideoCaptureAvFoundation somewhat. r=webrtc-reviewers,ng
This patch mainly changes VideoCaptureAdapter to use an instance method to set the capturer member under a mutex. It also moves the setting of this capturer to start rather than init (and unsets it on stop). With this we shouldn't need the prior fixes to RTCCameraVideoCapturer.m. Some other cleanup happens as well: - Constification of members - Moving the RTCVideoFrame to webrtc::VideoFrame conversion to OnFrame() - Optimizing away StartFrameRecording() - Only calculating image type once Differential Revision: https://phabricator.services.mozilla.com/D171960