| Index: remoting/protocol/rtp_writer.cc
|
| diff --git a/remoting/protocol/rtp_writer.cc b/remoting/protocol/rtp_writer.cc
|
| index fb1e1f8220105eea385ed5d965390b3b5da43bf9..a672c1e86b6a45a7ad5faf04a42f805a24eebfdd 100644
|
| --- a/remoting/protocol/rtp_writer.cc
|
| +++ b/remoting/protocol/rtp_writer.cc
|
| @@ -16,8 +16,9 @@ namespace {
|
| const uint8 kRtpPayloadTypePrivate = 96;
|
| } // namespace
|
|
|
| -RtpWriter::RtpWriter()
|
| - : last_packet_number_(0) {
|
| +RtpWriter::RtpWriter(base::MessageLoopProxy* message_loop)
|
| + : last_packet_number_(0),
|
| + buffered_rtp_writer_(new BufferedDatagramWriter(message_loop)) {
|
| }
|
|
|
| RtpWriter::~RtpWriter() { }
|
| @@ -25,7 +26,6 @@ RtpWriter::~RtpWriter() { }
|
| // Initializes the writer. Must be called on the thread the sockets belong
|
| // to.
|
| void RtpWriter::Init(net::Socket* rtp_socket) {
|
| - buffered_rtp_writer_ = new BufferedDatagramWriter();
|
| buffered_rtp_writer_->Init(rtp_socket, NULL);
|
| }
|
|
|
|
|