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

Unified Diff: remoting/protocol/video_writer.cc

Issue 7796026: Pass SessionConfig by reference instead of pointer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
« remoting/protocol/session_config.cc ('K') | « remoting/protocol/video_writer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_writer.cc
diff --git a/remoting/protocol/video_writer.cc b/remoting/protocol/video_writer.cc
index f0d4a537ca3690f6e387a773a26a94f8cf48b2f0..8ebf2850832960b034d74e55cf6cfc820c77a9a9 100644
--- a/remoting/protocol/video_writer.cc
+++ b/remoting/protocol/video_writer.cc
@@ -15,8 +15,8 @@ VideoWriter::~VideoWriter() { }
// static
VideoWriter* VideoWriter::Create(base::MessageLoopProxy* message_loop,
- const SessionConfig* config) {
- const ChannelConfig& video_config = config->video_config();
+ const SessionConfig& config) {
+ const ChannelConfig& video_config = config.video_config();
if (video_config.transport == ChannelConfig::TRANSPORT_SRTP) {
return new RtpVideoWriter(message_loop);
} else if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) {
« remoting/protocol/session_config.cc ('K') | « remoting/protocol/video_writer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698