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 331379b8a56d0e7307c500a810ac8336bdddb068..f865a1e6e0da36eede23479ac807c2340aa4fa4a 100644 |
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc |
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc |
@@ -74,6 +74,12 @@ void ScreenCapturerWinDirectx::CaptureFrame() { |
using DuplicateResult = DxgiDuplicatorController::Result; |
switch (result) { |
+ case DuplicateResult::UNSUPPORTED_SESSION: { |
+ LOG(LS_ERROR) << "Current binary is running on a session not supported " |
+ "by DirectX screen capturer."; |
+ 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 |