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

Unified Diff: remoting/protocol/rtp_video_writer.cc

Issue 4779001: Added CompoundBuffer that will be used to store data in the encoding/decoding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month 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
« no previous file with comments | « remoting/protocol/rtp_video_reader.cc ('k') | remoting/protocol/rtp_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/rtp_video_writer.cc
diff --git a/remoting/protocol/rtp_video_writer.cc b/remoting/protocol/rtp_video_writer.cc
index 1a7ead49d02cdc33b4f6be9fbd387e1a44579070..1aefbe86c254ebc6ac156fadb18b8e45e1a496d3 100644
--- a/remoting/protocol/rtp_video_writer.cc
+++ b/remoting/protocol/rtp_video_writer.cc
@@ -4,9 +4,11 @@
#include "remoting/protocol/rtp_video_writer.h"
+#include "net/base/io_buffer.h"
+#include "remoting/base/compound_buffer.h"
#include "remoting/proto/video.pb.h"
-#include "remoting/protocol/session.h"
#include "remoting/protocol/rtp_writer.h"
+#include "remoting/protocol/session.h"
namespace remoting {
namespace protocol {
@@ -20,8 +22,10 @@ void RtpVideoWriter::Init(protocol::Session* session) {
}
void RtpVideoWriter::SendPacket(const VideoPacket& packet) {
- rtp_writer_.SendPacket(packet.data().data(), packet.data().size(),
- packet.timestamp());
+ CompoundBuffer payload;
+ payload.AppendCopyOf(packet.data().data(), packet.data().size());
+
+ rtp_writer_.SendPacket(payload, packet.timestamp());
}
int RtpVideoWriter::GetPendingPackets() {
« no previous file with comments | « remoting/protocol/rtp_video_reader.cc ('k') | remoting/protocol/rtp_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698