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

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

Issue 883013003: [Cast] Separate frame size from VideoSenderConfig in H264VideoToolboxEncoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/sender/h264_vt_encoder_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/video_sender.cc
diff --git a/media/cast/sender/video_sender.cc b/media/cast/sender/video_sender.cc
index 0e9b72fed19b0f58003951d66073053c53d36b24..dcadf8365d7c764c0e02490566481e11ce08ab50 100644
--- a/media/cast/sender/video_sender.cc
+++ b/media/cast/sender/video_sender.cc
@@ -80,9 +80,12 @@ VideoSender::VideoSender(
if (!video_config.use_external_encoder &&
video_config.codec == CODEC_VIDEO_H264) {
video_encoder_.reset(new H264VideoToolboxEncoder(
- cast_environment, video_config,
+ cast_environment,
+ video_config,
+ gfx::Size(video_config.width, video_config.height),
base::Bind(&VideoSender::OnEncoderInitialized,
- weak_factory_.GetWeakPtr(), initialization_cb)));
+ weak_factory_.GetWeakPtr(),
+ initialization_cb)));
}
#endif // defined(OS_MACOSX)
#if !defined(OS_IOS)
« no previous file with comments | « media/cast/sender/h264_vt_encoder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698