webrtc: Blank desktop capturer regards empty frame as a blank frame
There is a AV where GDI capturer sends empty frame to the blank detector. It is fine operation from the GDI capturer to pass an empty to the next handler. So, blank capturer filter it and send it as blank frame to next handler. Bug: webrtc:14265 Change-Id: Ifc90a210703e14fa6d0dc7fb2ae2942ae4e8125f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268444 Reviewed-by: Alexander Cooper <alcooper@chromium.org> Commit-Queue: Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/main@{#37513}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
edd8c257f4
commit
b5d77a0c84
@ -86,7 +86,13 @@ void BlankDetectorDesktopCapturerWrapper::OnCaptureResult(
|
||||
return;
|
||||
}
|
||||
|
||||
RTC_DCHECK(frame);
|
||||
if (!frame) {
|
||||
// Capturer can call the blank detector with empty frame. Blank
|
||||
// detector regards it as a blank frame.
|
||||
callback_->OnCaptureResult(Result::ERROR_TEMPORARY,
|
||||
std::unique_ptr<DesktopFrame>());
|
||||
return;
|
||||
}
|
||||
|
||||
// If nothing has been changed in current frame, we do not need to check it
|
||||
// again.
|
||||
|
Reference in New Issue
Block a user