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

Unified Diff: remoting/protocol/video_reader.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
Index: remoting/protocol/video_reader.cc
diff --git a/remoting/protocol/video_reader.cc b/remoting/protocol/video_reader.cc
index d48daaac95d15167187f65c85f6cdc42c1b4b3ce..464b512646a1fd2803527c8d5952877dfcfcbe10 100644
--- a/remoting/protocol/video_reader.cc
+++ b/remoting/protocol/video_reader.cc
@@ -15,8 +15,8 @@ VideoReader::~VideoReader() { }
// static
VideoReader* VideoReader::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 RtpVideoReader(message_loop);
} else if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) {

Powered by Google App Engine
This is Rietveld 408576698