Index: remoting/protocol/rtcp_writer.cc |
diff --git a/remoting/protocol/rtcp_writer.cc b/remoting/protocol/rtcp_writer.cc |
index 5ccf74801332a175b12d93f2c6465422c82decb3..f8b8b7637c89e92cbc6648ce2517ca369d2bb61b 100644 |
--- a/remoting/protocol/rtcp_writer.cc |
+++ b/remoting/protocol/rtcp_writer.cc |
@@ -13,7 +13,8 @@ |
namespace remoting { |
namespace protocol { |
-RtcpWriter::RtcpWriter() { |
+RtcpWriter::RtcpWriter(base::MessageLoopProxy* message_loop) |
+ : buffered_rtcp_writer_(new BufferedDatagramWriter(message_loop)) { |
} |
RtcpWriter::~RtcpWriter() { |
@@ -26,7 +27,6 @@ void RtcpWriter::Close() { |
// Initializes the writer. Must be called on the thread the sockets |
// belong to. |
void RtcpWriter::Init(net::Socket* socket) { |
- buffered_rtcp_writer_ = new BufferedDatagramWriter(); |
buffered_rtcp_writer_->Init(socket, NULL); |
} |