| Index: webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
|
| index a09935fb01aad3a8aa67def08e5850c4656a392f..e4b2c3e8a225b397d4c67693baa646c2c98c34f3 100644
|
| --- a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
|
| +++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
|
| @@ -79,7 +79,7 @@ void ScreenCapturerWinDirectx::Capture(const DesktopRegion& region) {
|
|
|
| if (current_screen_id == kFullDesktopScreenId) {
|
| if (!DxgiDuplicatorController::Instance()->Duplicate(
|
| - &context_, frames_.previous_frame(), frames_.current_frame())) {
|
| + &context_, frames_.current_frame())) {
|
| // Screen size may be changed, so we need to reset the frames.
|
| frames_.Reset();
|
| callback_->OnCaptureResult(Result::ERROR_TEMPORARY, nullptr);
|
| @@ -87,8 +87,7 @@ void ScreenCapturerWinDirectx::Capture(const DesktopRegion& region) {
|
| }
|
| } else {
|
| if (!DxgiDuplicatorController::Instance()->DuplicateMonitor(
|
| - &context_, current_screen_id, frames_.previous_frame(),
|
| - frames_.current_frame())) {
|
| + &context_, current_screen_id, frames_.current_frame())) {
|
| // Screen size may be changed, so we need to reset the frames.
|
| frames_.Reset();
|
| if (current_screen_id >=
|
|
|