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 9630265c63e8720ee3089b9fccb9f1b873aa05e8..5701f5b47d7d9d1b4b9e8a0747a364896b29e306 100644 |
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc |
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc |
@@ -76,6 +76,11 @@ void ScreenCapturerWinDirectx::CaptureFrame() { |
using DuplicateResult = DxgiDuplicatorController::Result; |
switch (result) { |
+ case DuplicateResult::UNSUPPORTED_SESSION: { |
+ LOG(LS_ERROR) << "Current binary is running on an unsupported session."; |
+ callback_->OnCaptureResult(Result::ERROR_PERMANENT, nullptr); |
+ break; |
+ } |
case DuplicateResult::FRAME_PREPARE_FAILED: { |
LOG(LS_ERROR) << "Failed to allocate a new DesktopFrame."; |
// This usually means we do not have enough memory or SharedMemoryFactory |