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

Unified Diff: remoting/host/client_session.cc

Issue 850983002: Implement video frame acknowledgements in the chromoting protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « remoting/host/capture_scheduler_unittest.cc ('k') | remoting/host/video_frame_pump.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index ef6f5a6a4c7bb03645fc4a2197f389f85a294d5d..905539bc8f5fb690298a0d8af4abba7554537cac 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -447,6 +447,7 @@ void ClientSession::ResetVideoPipeline() {
DCHECK(CalledOnValidThread());
mouse_shape_pump_.reset();
+ connection_->set_video_feedback_stub(nullptr);
video_frame_pump_.reset();
// Create VideoEncoder and DesktopCapturer to match the session's video
@@ -484,6 +485,9 @@ void ClientSession::ResetVideoPipeline() {
// Pause capturing if necessary.
video_frame_pump_->Pause(pause_video_);
+
+ connection_->set_video_feedback_stub(
+ video_frame_pump_->video_feedback_stub());
}
void ClientSession::SetGnubbyAuthHandlerForTesting(
« no previous file with comments | « remoting/host/capture_scheduler_unittest.cc ('k') | remoting/host/video_frame_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698