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

Unified Diff: remoting/protocol/rtp_video_writer.cc

Issue 4476003: Add VideoPacket struct for video packets. Refactor Decode interface to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged 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/stream_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 5bd1c80193e55191f20f35fe230ec5e729d4252c..1a7ead49d02cdc33b4f6be9fbd387e1a44579070 100644
--- a/remoting/protocol/rtp_video_writer.cc
+++ b/remoting/protocol/rtp_video_writer.cc
@@ -4,6 +4,7 @@
#include "remoting/protocol/rtp_video_writer.h"
+#include "remoting/proto/video.pb.h"
#include "remoting/protocol/session.h"
#include "remoting/protocol/rtp_writer.h"
@@ -15,12 +16,11 @@ RtpVideoWriter::RtpVideoWriter() { }
RtpVideoWriter::~RtpVideoWriter() { }
void RtpVideoWriter::Init(protocol::Session* session) {
- rtp_writer_.Init(session->video_rtp_channel(),
- session->video_rtcp_channel());
+ rtp_writer_.Init(session->video_rtp_channel(), session->video_rtcp_channel());
}
void RtpVideoWriter::SendPacket(const VideoPacket& packet) {
- rtp_writer_.SendPacket(packet.data().data(), packet.data().length(),
+ rtp_writer_.SendPacket(packet.data().data(), packet.data().size(),
packet.timestamp());
}
« no previous file with comments | « remoting/protocol/rtp_video_reader.cc ('k') | remoting/protocol/stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698