summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/rtcp_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/rtcp_writer.cc')
-rw-r--r--remoting/protocol/rtcp_writer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/remoting/protocol/rtcp_writer.cc b/remoting/protocol/rtcp_writer.cc
index f8b8b76..f039ec5 100644
--- a/remoting/protocol/rtcp_writer.cc
+++ b/remoting/protocol/rtcp_writer.cc
@@ -27,7 +27,8 @@ 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_->Init(socket, NULL);
+ buffered_rtcp_writer_->Init(
+ socket, BufferedSocketWriter::WriteFailedCallback());
}
void RtcpWriter::SendReport(const RtcpReceiverReport& report) {
@@ -37,7 +38,7 @@ void RtcpWriter::SendReport(const RtcpReceiverReport& report) {
PackRtcpReceiverReport(report, reinterpret_cast<uint8*>(buffer->data()),
size);
- buffered_rtcp_writer_->Write(buffer, NULL);
+ buffered_rtcp_writer_->Write(buffer, base::Closure());
}
} // namespace protocol