Index: webrtc/modules/desktop_capture/window_capturer_null.cc |
diff --git a/webrtc/modules/desktop_capture/window_capturer_null.cc b/webrtc/modules/desktop_capture/window_capturer_null.cc |
index 3fe21cf7189322e1c1e5fb0d516ba531d8a1bfb6..5f32c3d71ccf4f51e2217205d4dcd8f680c94bec 100755 |
--- a/webrtc/modules/desktop_capture/window_capturer_null.cc |
+++ b/webrtc/modules/desktop_capture/window_capturer_null.cc |
@@ -34,13 +34,17 @@ |
void Capture(const DesktopRegion& region) override; |
private: |
- Callback* callback_ = nullptr; |
+ Callback* callback_; |
RTC_DISALLOW_COPY_AND_ASSIGN(WindowCapturerNull); |
}; |
-WindowCapturerNull::WindowCapturerNull() {} |
-WindowCapturerNull::~WindowCapturerNull() {} |
+WindowCapturerNull::WindowCapturerNull() |
+ : callback_(NULL) { |
+} |
+ |
+WindowCapturerNull::~WindowCapturerNull() { |
+} |
bool WindowCapturerNull::GetWindowList(WindowList* windows) { |
// Not implemented yet. |
@@ -66,7 +70,7 @@ |
void WindowCapturerNull::Capture(const DesktopRegion& region) { |
// Not implemented yet. |
- callback_->OnCaptureResult(Result::ERROR_TEMPORARY, nullptr); |
+ callback_->OnCaptureCompleted(NULL); |
} |
} // namespace |