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

Unified Diff: remoting/protocol/rtp_video_writer.cc

Issue 8587053: Remove event_channel() and control_channel() from Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month 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
Index: remoting/protocol/rtp_video_writer.cc
diff --git a/remoting/protocol/rtp_video_writer.cc b/remoting/protocol/rtp_video_writer.cc
index 7d83d06fe72eac34ed4d31e644faa998fff2aee4..5c924870518d187e552a6b70de10a8fa6abdcd87 100644
--- a/remoting/protocol/rtp_video_writer.cc
+++ b/remoting/protocol/rtp_video_writer.cc
@@ -44,6 +44,10 @@ void RtpVideoWriter::Init(protocol::Session* session,
base::Unretained(this), false));
}
+bool RtpVideoWriter::is_connected() {
+ return rtp_channel_.get() && rtcp_channel_.get();
+}
+
void RtpVideoWriter::OnChannelReady(bool rtp, net::Socket* socket) {
if (!socket) {
if (!initialized_) {

Powered by Google App Engine
This is Rietveld 408576698