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

Unified Diff: media/cast/cast_sender_impl.cc

Issue 562653004: Cast: First stab at implementing adaptive latency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: media/cast/cast_sender_impl.cc
diff --git a/media/cast/cast_sender_impl.cc b/media/cast/cast_sender_impl.cc
index f617ef4429c5d52c2e564b9df3ff5ec9b7b345b5..f3e84244ad6a2784daf99a4a0fa06c493fb7aa7c 100644
--- a/media/cast/cast_sender_impl.cc
+++ b/media/cast/cast_sender_impl.cc
@@ -127,11 +127,14 @@ void CastSenderImpl::InitializeVideo(
VLOG(1) << "CastSenderImpl@" << this << "::InitializeVideo()";
- video_sender_.reset(new VideoSender(cast_environment_,
- video_config,
- create_vea_cb,
- create_video_encode_mem_cb,
- transport_sender_));
+ video_sender_.reset(
+ new VideoSender(cast_environment_,
+ video_config,
+ create_vea_cb,
+ create_video_encode_mem_cb,
+ transport_sender_,
+ base::Bind(&CastSenderImpl::SetTargetPlayoutDelay,
+ weak_factory_.GetWeakPtr())));
const CastInitializationStatus status = video_sender_->InitializationResult();
if (status == STATUS_VIDEO_INITIALIZED) {

Powered by Google App Engine
This is Rietveld 408576698