Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: remoting/host/desktop_session_proxy.cc

Issue 2238853003: [Chromoting] A crash in DesktopSessionProxy::OnCaptureResult (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_proxy.cc
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc
index ed7ba98793e6048cad24942bfb4bb5dbd6f1220b..ccfee257de3323c83de05da5ffe93b516c889530 100644
--- a/remoting/host/desktop_session_proxy.cc
+++ b/remoting/host/desktop_session_proxy.cc
@@ -484,6 +484,10 @@ void DesktopSessionProxy::OnCaptureResult(
--pending_capture_frame_requests_;
+ if (!video_capturer_) {
+ return;
+ }
+
if (result != webrtc::DesktopCapturer::Result::SUCCESS) {
video_capturer_->OnCaptureResult(result, nullptr);
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698