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

Unified Diff: media/cast/video_sender/video_sender.cc

Issue 126843003: Revert of Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 | « media/cast/video_sender/video_sender.h ('k') | media/cast/video_sender/video_sender_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_sender/video_sender.cc
diff --git a/media/cast/video_sender/video_sender.cc b/media/cast/video_sender/video_sender.cc
index 355cdef6f846dbfabfc22e67a9a648795d582281..1f27ba7738944e054a7ee740751db34e716783db 100644
--- a/media/cast/video_sender/video_sender.cc
+++ b/media/cast/video_sender/video_sender.cc
@@ -61,7 +61,7 @@
max_frame_rate_(video_config.max_frame_rate),
cast_environment_(cast_environment),
rtcp_feedback_(new LocalRtcpVideoSenderFeedback(this)),
- rtp_sender_(new transport::RtpSender(cast_environment->Clock(),
+ rtp_sender_(new transport::RtpSender(cast_environment,
NULL,
&video_config,
paced_packet_sender)),
@@ -148,14 +148,13 @@
}
void VideoSender::SendEncodedVideoFrameMainThread(
- scoped_ptr<transport::EncodedVideoFrame> video_frame,
+ scoped_ptr<EncodedVideoFrame> video_frame,
const base::TimeTicks& capture_time) {
SendEncodedVideoFrame(video_frame.get(), capture_time);
}
-bool VideoSender::EncryptVideoFrame(
- const transport::EncodedVideoFrame& video_frame,
- transport::EncodedVideoFrame* encrypted_frame) {
+bool VideoSender::EncryptVideoFrame(const EncodedVideoFrame& video_frame,
+ EncodedVideoFrame* encrypted_frame) {
DCHECK(encryptor_) << "Invalid state";
if (!encryptor_->SetCounter(GetAesNonce(video_frame.frame_id, iv_mask_))) {
@@ -175,14 +174,13 @@
return true;
}
-void VideoSender::SendEncodedVideoFrame(
- const transport::EncodedVideoFrame* encoded_frame,
- const base::TimeTicks& capture_time) {
+void VideoSender::SendEncodedVideoFrame(const EncodedVideoFrame* encoded_frame,
+ const base::TimeTicks& capture_time) {
DCHECK(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
last_send_time_ = cast_environment_->Clock()->NowTicks();
if (encryptor_) {
- transport::EncodedVideoFrame encrypted_video_frame;
+ EncodedVideoFrame encrypted_video_frame;
if (!EncryptVideoFrame(*encoded_frame, &encrypted_video_frame)) {
// Logging already done.
« no previous file with comments | « media/cast/video_sender/video_sender.h ('k') | media/cast/video_sender/video_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698