| Index: webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| index f7a873016ffaf1d8ee6d135fbaf1c0c5211ab33e..04f466455fe11aa525c487e0d97ae38e6283d91b 100644
|
| --- a/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| +++ b/webrtc/modules/desktop_capture/win/dxgi_output_duplicator.cc
|
| @@ -219,6 +219,10 @@ bool DxgiOutputDuplicator::Duplicate(Context* context,
|
| target->CopyPixelsFrom(*last_frame_, it.rect().top_left(), it.rect());
|
| }
|
| target->mutable_updated_region()->AddRegion(updated_region);
|
| + } else {
|
| + // If we were at the very first frame, and capturing failed, the
|
| + // context->updated_region should be kept unchanged for next attempt.
|
| + context->updated_region.Swap(&updated_region);
|
| }
|
| // If AcquireNextFrame() failed with timeout error, we do not need to release
|
| // the frame.
|
|
|