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

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

Issue 306783002: [Cast] Clean-up: Merge AudioReceiverConfig+VideoReceiverConfig-->FrameReceiverConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed kFakeSoftwareAudio in AudioCodec enum, per hclam@. Created 6 years, 7 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_receiver/video_receiver.h ('k') | media/cast/video_receiver/video_receiver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_receiver/video_receiver.cc
diff --git a/media/cast/video_receiver/video_receiver.cc b/media/cast/video_receiver/video_receiver.cc
index 9988eacf5d93532685b18b53be8838621748dbc0..d9000de88ee0ac04b2bf206066f9a103430ad324 100644
--- a/media/cast/video_receiver/video_receiver.cc
+++ b/media/cast/video_receiver/video_receiver.cc
@@ -23,12 +23,12 @@ namespace media {
namespace cast {
VideoReceiver::VideoReceiver(scoped_refptr<CastEnvironment> cast_environment,
- const VideoReceiverConfig& video_config,
+ const FrameReceiverConfig& video_config,
transport::PacedPacketSender* const packet_sender)
: RtpReceiver(cast_environment->Clock(), NULL, &video_config),
cast_environment_(cast_environment),
event_subscriber_(kReceiverRtcpEventHistorySize, VIDEO_EVENT),
- codec_(video_config.codec),
+ codec_(video_config.codec.video),
target_playout_delay_(
base::TimeDelta::FromMilliseconds(video_config.rtp_max_delay_ms)),
expected_frame_duration_(
@@ -37,7 +37,7 @@ VideoReceiver::VideoReceiver(scoped_refptr<CastEnvironment> cast_environment,
framer_(cast_environment->Clock(),
this,
video_config.incoming_ssrc,
- video_config.decoder_faster_than_max_frame_rate,
+ true,
video_config.rtp_max_delay_ms * video_config.max_frame_rate /
1000),
rtcp_(cast_environment_,
@@ -56,9 +56,7 @@ VideoReceiver::VideoReceiver(scoped_refptr<CastEnvironment> cast_environment,
weak_factory_(this) {
DCHECK_GT(video_config.rtp_max_delay_ms, 0);
DCHECK_GT(video_config.max_frame_rate, 0);
- if (!video_config.use_external_decoder) {
- video_decoder_.reset(new VideoDecoder(cast_environment, video_config));
- }
+ video_decoder_.reset(new VideoDecoder(cast_environment, video_config));
decryptor_.Initialize(video_config.aes_key, video_config.aes_iv_mask);
rtcp_.SetTargetDelay(target_playout_delay_);
cast_environment_->Logging()->AddRawEventSubscriber(&event_subscriber_);
« no previous file with comments | « media/cast/video_receiver/video_receiver.h ('k') | media/cast/video_receiver/video_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698