Index: webrtc/modules/desktop_capture/win/dxgi_frame.cc |
diff --git a/webrtc/modules/desktop_capture/win/dxgi_frame.cc b/webrtc/modules/desktop_capture/win/dxgi_frame.cc |
index 6e33b64527665a007fc413a7a6bae3fcf459fda5..1c5583fcc9d9799570368f90aae1c9e19b0c6590 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_frame.cc |
+++ b/webrtc/modules/desktop_capture/win/dxgi_frame.cc |
@@ -15,6 +15,7 @@ |
#include <utility> |
#include "webrtc/base/checks.h" |
+#include "webrtc/base/logging.h" |
#include "webrtc/modules/desktop_capture/desktop_frame.h" |
#include "webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h" |
@@ -46,6 +47,8 @@ bool DxgiFrame::Prepare(DesktopSize size, DesktopCapturer::SourceId source_id) { |
frame.reset(new BasicDesktopFrame(size)); |
} |
if (!frame) { |
+ LOG(LS_WARNING) << "DxgiFrame cannot create a new DesktopFrame. Out of " |
+ "memory?"; |
Sergey Ulanov
2017/06/26 23:41:41
nit: Maybe remove the second sentence? It doesn't
Hzj_jie
2017/06/27 04:37:33
Done.
|
return false; |
} |
// DirectX capturer won't paint each pixel in the frame due to its one |