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

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

Issue 892383002: RELAND: [Cast] Software encoder support for varying video frame sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for 'access to uninitialized memory' error. 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/video_encoder_impl_unittest.cc ('k') | media/cast/sender/vp8_encoder.h » ('j') | 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 8980a04544bcdd4d54fa681c744e91011a3b819d..c900187e74be166590322723e78d565aabffe25f 100644
--- a/media/cast/sender/video_sender.cc
+++ b/media/cast/sender/video_sender.cc
@@ -100,18 +100,12 @@ VideoSender::VideoSender(
create_video_encode_mem_cb));
} else if (!video_encoder_) {
// Software encoder is initialized immediately.
- video_encoder_.reset(new VideoEncoderImpl(cast_environment, video_config));
+ video_encoder_.reset(new VideoEncoderImpl(
+ cast_environment, video_config, initialization_cb));
cast_initialization_status_ = STATUS_VIDEO_INITIALIZED;
}
#endif // !defined(OS_IOS)
- if (cast_initialization_status_ == STATUS_VIDEO_INITIALIZED) {
- cast_environment->PostTask(
- CastEnvironment::MAIN,
- FROM_HERE,
- base::Bind(initialization_cb, cast_initialization_status_));
- }
-
media::cast::CastTransportRtpConfig transport_config;
transport_config.ssrc = video_config.ssrc;
transport_config.feedback_ssrc = video_config.receiver_ssrc;
« no previous file with comments | « media/cast/sender/video_encoder_impl_unittest.cc ('k') | media/cast/sender/vp8_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698